分支 IO - 在自定义事件中显示推荐参数
Posted
技术标签:
【中文标题】分支 IO - 在自定义事件中显示推荐参数【英文标题】:Branch IO - Show referral parameters in custom event 【发布时间】:2020-04-21 13:47:38 【问题描述】:在我的应用中,我正在使用 Branch 跟踪应用安装推荐,并且我还有一个名为 SIGN_UP
的自定义事件,它会在注册请求完成后发送。|
因此,在使用分支链接(特别是 fb 链接)在我的应用中安装和注册后,即使我在 INSTALL
事件中获得了正常的活动数据,我似乎也没有在我的自定义中获得任何相关数据一:
Screenshot of dashboard webhook events when filtered by AAID(查看第一行中的Campaign
、Ad Partner 3P
、Ad Partner
、Channel
、Feature
列如何为空。)
发生这种情况的任何原因?
使用的代码:
在我的应用程序类中:@Override
public void onCreate()
super.onCreate();
// ...
Branch.getAutoInstance(this);
// ...
在我的启动器活动中:
private val callback = Branch.BranchReferralInitListener referringParams, error ->
if (error == null)
Timber.i("BRANCH SDK success: %s", referringParams.toString())
else
Timber.e("BRANCH SDK error: %s", error.message)
override fun onStart()
super.onStart()
Branch.sessionBuilder(this).withCallback(callback).withData(this.intent?.data).init()
override fun onNewIntent(intent: Intent?)
super.onNewIntent(intent)
Branch.sessionBuilder(this).withCallback(callback).reInit()
发送SIGN_UP
事件时:
Branch.getInstance().setIdentity(memberId)
BranchEvent("SIGN_UP")
.addCustomDataProperty("UDID", udid)
.logEvent(activity)
分支版本:5.0.1
【问题讨论】:
【参考方案1】:对于 Facebook 作为广告网络,Branch 有以下data limitations
-
我们无法将设备级 Facebook 归因数据发送给第三方。
我们无法通过数据集成发送归因于 Facebook 的事件。请考虑在内部分析这些数据(使用 Webhook、Daily Export API 或 CSV Exports),或使用 Branch Dashboard 来满足您的所有分析和归因需求。
此数据也不会在应用内的深度链接会话初始化回调中返回。此外,您必须签署 Facebook 的“高级移动测量”协议(“高级移动应用测量的数据使用条款”)才能查看这些数据。
【讨论】:
以上是关于分支 IO - 在自定义事件中显示推荐参数的主要内容,如果未能解决你的问题,请参考以下文章
React Hooks:确保 useEffect 仅在自定义钩子的数组参数内容更改时运行的惯用方法
在自定义 UINavigationController 中强制执行特定 rootViewController 的推荐方法是啥?