【发布时间】:2016-04-18 20:26:48
【问题描述】:
我正在尝试使用 Google Analytics iOS SDK 为我的 iOS 应用用户收集 Demographics and Interest Reports。
我在我的 Google Analytics(分析)仪表板中启用了Demographics and Interest Reports。我还安装了GoogleIDFASupport pod (Cocoapods),并在我的应用委托中设置了以下代码:
#if DEBUG
#else
let gAnalytics = GAI.sharedInstance()
gAnalytics.defaultTracker.allowIDFACollection = true
#endif
我已经多次测试该应用程序,并在我的 iPhone 上以 Release 方案运行,该应用程序目前也在 App Store 中等待审核。
当我登录 Google Analytics(分析)仪表板并转到 Demographics and Interest Reports 部分时,它会告诉我我已启用它,但还会显示一个按钮,上面写着“验证跟踪代码”。如果我点击按钮,页面就会刷新并告诉我"Your Analytics tracking code does not include the necessary support for the Demographics and Interest reports."
如何验证跟踪代码?
【问题讨论】:
标签: ios google-analytics idfa