Google Analytics实时无法使用 [英] Google Analytics real time not working
本文介绍了Google Analytics实时无法使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用此代码使用 Google Analytics
获取实时信息和App Review,代码位于AppDelegate中:
[GAI sharedInstance] .trackUncaughtExceptions = YES;
[[GAI sharedInstance] .logger setLogLevel:kGAILogLevelVerbose];
[GAI sharedInstance] .dispatchInterval = kGANDispatchPeriodSec;
self.tracker = [[GAI sharedInstance] trackerWithName:@APP_NAMEtrackingId:kGoogleAnalyticsCode];
self.tracker.allowIDFACollection = NO;
[self.tracker set:kGAIScreenName value:@APP_NAME];
[self.tracker发送:[[GAIDictionaryBuilder createScreenView] build]];
我得到这个日志在控制台:
VERBOSE:GoogleAnalytics 3.13 + [GAITrackerModel初始化](GAITrackerModel.m:88):idfa class missing,不会收集idfa
VERBOSE:GoogleAnalytics 3.13 - [GAIBatchingDispatcher persist :](GAIBatchingDispatcher.m:517):保存的命中:{
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广告系列跟踪已停用,因为iAd框架未关联。有关说明,请参阅http://goo.gl/426NGa。
INFO:GoogleAnalytics 3.13 - [GAIReachabilityChecker reachabilityFlagsChanged:](GAIReachabilityChecker.m:159):可达性标志更新:0X000002
任何想法可能是我在 Google Analytics(分析)的实时控制台中没有看到任何内容的问题
??
解决方案
您应该在 TARGETS - > 链接框架和库中添加iAd.framework + - > iAd.framework
自解释屏幕截图:
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
??
解决方案
You should add iAd.framework in TARGETS -> Linked Frameworks and Libraries -> + -> iAd.framework
Self explanatory screenshot:
这篇关于Google Analytics实时无法使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文