Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics real time not working

I am using this code for using Google Analytics for getting real time info and App Review, the code is in the 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 Log in the console:

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 can be the issue that i don't see nothing in the real-time console of Google Analytics??

like image 574
YosiFZ Avatar asked Oct 08 '15 13:10

YosiFZ


1 Answers

You should add iAd.framework in TARGETS -> Linked Frameworks and Libraries -> + -> iAd.framework

Self explanatory screenshot: enter image description here

like image 193
Guen Truong Avatar answered Oct 24 '22 17:10

Guen Truong