iOS:如何跟踪firebase动态链接

标签 ios objective-c swift firebase firebase-dynamic-links

我已使用 FIRDynamicLinkGoogleAnalyticsParameters 添加了 UTM 参数

FIRDynamicLinkGoogleAnalyticsParameters *analyticsParams =
  [FIRDynamicLinkGoogleAnalyticsParameters parametersWithSource:Source
                                                         medium:Medium
                                                       campaign:Campaign];
  analyticsParams.term = Term;
  analyticsParams.content = Content;
  components.analyticsParameters = analyticsParams;

现在我想像这样跟踪动态链接,

如果我在 Facebook 上分享,任何人点击该链接都会转到应用程序,如果有其他链接,则会转到 App Store。

在我需要根据其来源显示消息之后,即来自 Facebook 的欢迎消息。

那么我们可以跟踪动态链接并检查链接是从哪里被点击的,并根据来源显示相关消息。

谁能解释一下如何实现这个: https://firebase.google.com/docs/dynamic-links/analytics

By adding these tracking parameters to your Dynamic Links, Google Analytics and iTunes Connect can treat them like any other campaign it's measuring attribution reporting for, and you can view conversion events not just by the ad campaigns responsible for bringing in those users, but also by which Dynamic Links might have brought them in.

The following parameters are passed to Google Analytics: utm_source, utm_medium, utm_campaign, utm_term, utm_content, gclid

The following parameters are passed to the App Store: at, ct, mt, pt

在此线程中提出了同样的问题:

App link tracking with Firebase

最佳答案

我还在 Firebase GitHub 上发布了这个问题并得到了回复:

https://github.com/firebase/firebase-ios-sdk/issues/4775

You can't track where the link was tapped from unless you create a custom link (or add custom parameters) for each source, but even then this will result in mismatches if a user ever copies a link and shares it to a different source.

关于iOS:如何跟踪firebase动态链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59982229/

相关文章:

swift - iOS 11.2.6 上的间歇性通用链接问题

ios - iOS 中简单的只读数据存储(易于编辑和可视化)

objective-c - cocoa 检查更新

ios - 如何以编程方式触发 UIButton 操作

ios - 没有这样的模块 UIintedButton

ios - swift multilpe pickerView

ios - 如何使用调用目录扩展来识别我的应用程序中的来电?

ios - UIApplication openURL vs NSURLConnection initWithRequest 用于启动 iTunes

ios - 可以在 Codable 中使用 NSArray 吗? (将 "Object Mapper"转换为 "Codable")

ios - 如何以多部分形式将多个图像文件发送到服务器?