Failed to validate demographic tracking code using Google Analytics iOS SDK with IDFA

I am trying to compile Demographics and Interest Reports for users of iOS applications using the Google Analytics iOS SDK .

I have included Demographics and Interest Reports in the Google Analytics toolbar. I also installed the GoogleIDFASupport pod (Cocoapods) and installed the following code in my application deletion:

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

I tested the application several times and ran in the release chart on my iPhone, and the application is also pending review in the App Store.

When I enter the Google Analytics toolbar and go to the Demographics and Interest Reports section, it tells me that I turned it on, but also presents a button that says "Check 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 check the tracking code?

0
source share
1 answer

In the end, I simply ignored the warning and skipped the check. Demographic statistics showed up just fine.

+1
source

Source: https://habr.com/ru/post/987790/


All Articles