我已使用 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
在此线程中提出了同样的问题:
最佳答案
我还在 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/