无法使用带有IDFA的Google Analytics iOS SDK验证人口统计报告的跟踪代码 [英] Cant validate tracking code for demographic reports using Google Analytics iOS SDK with IDFA
问题描述
我试图为使用 Google Analytics iOS SDK
的iOS应用用户收集受众特征和兴趣报告
。
我在Google Analytics(分析)信息中心内启用了受众特征和兴趣报告
。我还安装了 GoogleIDFASupport
pod(Cocoapods),并在我的应用程序委托中设置了以下代码:
#if DEBUG
#else
let gAnalytics = GAI.sharedInstance()
gAnalytics.defaultTracker.allowIDFACollection = true
#endif
我已经多次测试该应用程序,并在我的iPhone上以Release方式运行,并且该应用程序目前也在等待当您登录到Google Analytics仪表板并转到受众特征和兴趣报告
时,您可以在App Store中进行审查。 >部分,它告诉我,我已启用它,但还显示一个按钮,显示验证跟踪代码。如果我点击该按钮,网页会刷新并告诉我您的Google Analytics跟踪代码不包含对受众特征和兴趣报告的必要支持。
我如何验证追踪程式码?
我最终忽略了警告并跳过验证。人口统计数据显示得很好。
I'm trying to gather Demographics and Interest Reports
for my iOS app users using the Google Analytics iOS SDK
.
I have enabled Demographics and Interest Reports
in my Google Analytics dashboard. I also installed the GoogleIDFASupport
pod (Cocoapods), and set the following code in my app delegate:
#if DEBUG
#else
let gAnalytics = GAI.sharedInstance()
gAnalytics.defaultTracker.allowIDFACollection = true
#endif
I have been testing the app multiple times, and running in Release scheme on my iPhone, and the app is also currently waiting for review in the App Store.
When I login to the Google Analytics dashboard, and go to the Demographics and Interest Reports
section, it tells me that I have enabled it, but also presents a button that says "Validate tracking code". If I click the button, the page just refreshes and tells me that "Your Analytics tracking code does not include the necessary support for the Demographics and Interest reports."
How can I validate the tracking code?
I ended up just ignoring the warning and skipping the validation. The demographics stats have been showing up just fine.
这篇关于无法使用带有IDFA的Google Analytics iOS SDK验证人口统计报告的跟踪代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!