Google Analytics not working in real time

I use this code to use Google Analytics to get real-time information and review applications, the code is in AppDelegate:

 [GAI sharedInstance].trackUncaughtExceptions = YES; [[GAI sharedInstance].logger setLogLevel:kGAILogLevelVerbose]; [GAI sharedInstance].dispatchInterval = kGANDispatchPeriodSec; self.tracker = [[GAI sharedInstance] trackerWithName:@"APP_NAME" trackingId:kGoogleAnalyticsCode]; self.tracker.allowIDFACollection = NO; [self.tracker set:kGAIScreenName value:@"APP_NAME"]; [self.tracker send:[[GAIDictionaryBuilder createScreenView] build]]; 

And I get this console entry:

 VERBOSE: GoogleAnalytics 3.13 +[GAITrackerModel initialize] (GAITrackerModel.m:88): idfa class missing, won't collect idfa VERBOSE: GoogleAnalytics 3.13 -[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:517): Saved hit: { parameters = { "&_crc" = 0; "&_s" = 10; "&_u" = ".etnK9L"; "&_v" = "mi3.1.3"; "&av" = "1.0"; "&dm" = "iPhone7,2"; "&ds" = app; "&sr" = 750x1334; "&t" = screenview; "&ul" = "en-il"; "&v" = 1; gaiVersion = "3.13"; }; timestamp = "2015-10-08 13:36:40 +0000"; } VERBOSE: GoogleAnalytics 3.13 __70-[GAIBatchingDispatcher checkIAdCampaignAttributionWithHitParameters:]_block_invoke (GAIBatchingDispatcher.m:749): iAd campaign tracking disabled because the iAd framework is not linked. See http://goo.gl/426NGa for instructions. INFO: GoogleAnalytics 3.13 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000002 

Any idea what could be the problem that I can't see anything in the Google Analytics real-time console ??

+6
source share
1 answer

You should add iAd.framework to TARGETS β†’ Related Structures and Libraries β†’ + β†’ iAd.framework

Hidden screenshot: enter image description here

+6
source

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


All Articles