【问题标题】:Branch.io: how to merge events sent server-to-server with user installs reported from the client?Branch.io:如何将服务器到服务器发送的事件与客户端报告的用户安装合并?
【发布时间】:2021-01-19 23:48:35
【问题描述】:

设置

我有一个带有基本 Branch SDK 集成的 iOS 应用。它所做的只是:

  • 报告安装事件(通过 initSession() 调用)
  • 一段时间后调用 setIdentity() 方法以使用从后端收到的 ID 来识别用户

稍后在应用内向用户提供带有试用期的订阅。试用开始后,后端会收到通知。我想从我的后端向 Branch 报告试验开始(服务器到服务器的方式),因此它归因于 Branch 渠道/活动,我可以在 Branch 的“来源”工具中看到每个活动的效率。

为此,我根据文档https://github.com/BranchMetrics/branch-deep-linking-public-api#logging-user-lifecycle-events 执行以下 curl 请求:

curl -vvv -d '{"name": "START_TRIAL","customer_event_alias": "Trial Start","user_data": {"os": "iOS","environment": "FULL_APP","aaid":"93A6BC61-AC2B-4008-9565-4DF2FD2395C9","limit_ad_tracking":false,"developer_identity": "41740","country": "US","language": "en"},"custom_data": {"product_id": "my.product.id"},"metadata": {},"branch_key": "key_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"}' https://api2.branch.io/v2/event/standard

收到的答案是: {"branch_view_enabled":false}

从请求中可以看出,我传递了 IDFA 和 developer_identity,我希望将 START_TRIAL 事件归因于带来用户的分支频道/活动就足够了。

问题

START_TRIALS 和其他有价值的事件都归功于自然流量。因此,对于测试活动,我看到了一次点击,安装了一个开放但零试用的开始。试用开始归因于自然流量。

我检查过的内容

我已经通过 Charless SSL 检查了用户 ID 是由 Branch SDK 发送到 Branch 后端的(注意相同的 IDFA 93A6BC61-AC2B-4008-9565-4DF2FD2395C9 和用户 ID 41740):

"os": "iOS", "hardware_id": "93A6BC61-AC2B-4008-9565-4DF2FD2395C9", “屏幕宽度”:750, "identity_id": "789438365770392069", “构建”:“16G183”, "ios_vendor_id": "A3656BAB-CDF9-4572-B944-80D5B6017376", “hardware_id_type”:“idfa”, “仪器”:{ “/v1/install-brtt”:“406” }, “环境”:“FULL_APP”, “型号”:“iPhone7,2”, "身份": "41740",

所以考虑到我已经传递给 Branch 的所有数据,我还应该做些什么来合并从服务器到服务器发送的事件与从客户端报告的用户安装?

【问题讨论】:

    标签: analytics branch.io


    【解决方案1】:

    如果您尝试跟踪 iOS 事件,我猜您应该使用 user_data.idfa 而不是 user_data.aaid(Android ID)。

    来自documentation

    user_data.aaid : Android/Google 广告 ID

    user_data.idfa : iOS 广告 id

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多