Google Analytics real time not working

 ̄綄美尐妖づ 提交于 2019-12-09 10:27:03

问题


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??


回答1:


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

Self explanatory screenshot:



来源:https://stackoverflow.com/questions/33017566/google-analytics-real-time-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!