我在我的應用中遇到Google Analytics問題。該網站似乎沒有收到任何數據,但該應用程序似乎發送它的權利。我遵循這個Ray Wenderlich教程,以及您運行該應用程序的位置,實時概覽中應該有1位訪問者。它口口聲聲說0Google Analytics(分析)未收到數據
我AppDelegate.m
[GAI sharedInstance].trackUncaughtExceptions = YES;
[GAI sharedInstance].dispatchInterval = 20;
[[[GAI sharedInstance] logger] setLogLevel:kGAILogLevelVerbose];
[[GAI sharedInstance] trackerWithTrackingId:@"UA-********-2"];
我ViewController.m
- (void)viewDidLoad
{
[super viewDidLoad];-
self.screenName = @"ScreenZero";
//more
}
我的控制檯
2014-10-17 15:07:52.479 Wheels[25548:2342406] idfa class missing, won't collect idfa
2014-10-17 15:07:52.513 Wheels[25548:2342437] CoreData: warning: Unable to load class named 'GAIProperty' for entity 'GAIProperty'. Class not found, using default NSManagedObject instead.
2014-10-17 15:07:52.923 Wheels[25548:2342406] INFO: GoogleAnalytics 3.09 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000002
2014-10-17 15:07:52.962 Wheels[25548:2342437] CoreData: warning: Unable to load class named 'GAIHit' for entity 'GAIHit'. Class not found, using default NSManagedObject instead.
2014-10-17 15:07:52.978 Wheels[25548:2342437] VERBOSE: GoogleAnalytics 3.09 -[GAIBatchingDispatcher persist:] (GAIBatchingDispatcher.m:431): Saved hit: {
parameters = {
"&_crc" = 0;
"&_u" = ".etno";
"&_v" = "mi3.0.9";
"&a" = 730280959;
"&aid" = "com.samvandamme.Wheels";
"&an" = Wheels;
"&av" = "0.1";
"&cd" = ScreenZero;
"&cid" = "7deb1f6d-3407-47e6-8303-7bc6305cd706";
"&sr" = 1024x768;
"&t" = appview;
"&tid" = "UA-********-2";
"&ul" = en;
"&v" = 1;
"&z" = 15854684929669144728;
gaiVersion = "3.09";
};
timestamp = "2014-10-17 13:07:52 +0000";
}
2014-10-17 15:08:12.537 Wheels[25548:2342437] VERBOSE: GoogleAnalytics 3.09 -[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:195): building URLRequest for https://ssl.google-analytics.com/collect
2014-10-17 15:08:12.538 Wheels[25548:2342437] VERBOSE: GoogleAnalytics 3.09 -[GAIBatchingDispatcher dispatchWithCompletionHandler:] (GAIBatchingDispatcher.m:536): Sending hit(s) GET: https://ssl.google-analytics.com/collect?av=0.1&a=730280959&cd=ScreenZero&t=appview&_crc=0&ul=en&_u=.etno&tid=UA-********-2&cid=7deb1f6d-3407-47e6-8303-7bc6305cd706&sr=1024x768&v=1&aid=com.samvandamme.Wheels&an=Wheels&_v=mi3.0.9&ht=1413551272962&qt=19574&z=15854684929669144728
2014-10-17 15:08:12.815 Wheels[25548:2342406] INFO: GoogleAnalytics 3.09 -[GAIBatchingDispatcher didSendHits:response:data:error:completionHandler:] (GAIBatchingDispatcher.m:161): Hit(s) dispatched: HTTP status 200
2014-10-17 15:08:12.816 Wheels[25548:2342437] INFO: GoogleAnalytics 3.09 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:443): hit(s) Successfully dispatched
2014-10-17 15:08:12.821 Wheels[25548:2342437] INFO: GoogleAnalytics 3.09 -[GAIBatchingDispatcher didSendHits:sendMore:] (GAIBatchingDispatcher.m:174): 1 hit(s) sent
我的谷歌Analytics(分析)
因此沒有任何東西會被髮送到GA。有任何想法嗎?
你有沒有找到任何解決方案,@Yoko?我有同樣的問題! – 2014-10-24 15:17:26
奇怪的是:我剛剛檢查了Google Analytics,我的數據開始工作。即使是實時。不知道什麼是錯誤的原因,我沒有做任何調整...給我發一條消息與你的foocode,我會檢查它與我的任何差異。 – Yoko 2014-10-24 15:32:26