我正在尝试为Demographics and Interest Reports
使用Google Analytics iOS SDK
.
我已Demographics and Interest Reports
在我的 Google Analytics(分析)仪表板中启用。我还安装了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."
如何验证跟踪代码?