无法使用带有IDFA的Google Analytics iOS SDKvalidation受众人口统计报告的跟踪代码

我正在尝试使用Google Analytics iOS SDK为我的iOS应用用户收集Demographics and Interest Reports

我在Google Analytics(分析)信息中心中启用了“ Demographics and Interest Reports 。 我还安装了GoogleIDFASupport窗格(Cocoapods),并在我的应用程序委托中设置了以下代码:

 #if DEBUG #else let gAnalytics = GAI.sharedInstance() gAnalytics.defaultTracker.allowIDFACollection = true #endif 

我一直在testing应用程序多次,并在我的iPhone上运行在释放计划,该应用程序目前也在等待审查在App Store中。

当我login到Google Analytics(分析)信息中心并转到“ Demographics and Interest Reports部分时,它会告诉我已启用此function,但还会显示一个button,显示“validation跟踪代码”。 如果我点击该button,网页只会刷新,并告诉我"Your Analytics tracking code does not include the necessary support for the Demographics and Interest reports."

如何validation跟踪代码?

我最终忽略了警告并跳过了validation。 人口统计数据显示出来很好。