2013-02-15 62 views
2

我在我的 - didFinishLaunchingWithOptions中使用了以下代碼。但是我在GA中看不到任何活躍的用戶。我是否需要添加更多配置?谷歌分析不發送數據!獲得0活動用戶

注:UAYourTrackingID是正確的。

// Optional: automatically send uncaught exceptions to Google Analytics. 
[GAI sharedInstance].trackUncaughtExceptions = YES; 
// Optional: set Google Analytics dispatch interval to e.g. 20 seconds. 
[GAI sharedInstance].dispatchInterval = 20; 
// Optional: set debug to YES for extra debugging information. 
[GAI sharedInstance].debug = YES; 
// Create tracker instance. 
[[GAI sharedInstance] trackerWithTrackingId:UAYourTrackingID]; 

[[[GAI sharedInstance] defaultTracker] sendView:@"RootView"]; 

回答

3

你不會看到他們在第一天。只要耐心等待,直到第二天,你就可以列出所有東西,至少在我的情況下。積極的用戶也需要一些時間來顯示。

4

我覺得你的問題是關於谷歌分析管理。

由於「V2」公測,你需要在你的谷歌分析管理員添加一個「應用程序」的個人資料。所以現在你有「網絡」配置文件和「應用程序」配置文件。

你不需要改變你的「UAYourTrackingID」,它只是從「應用程序」使「網絡」之間的區別。

入住此網頁:http://support.google.com/analytics/bin/answer.py?hl=en&answer=2614741

我希望這是你的問題^^

編輯:你可以找到它的這個「V2遷移」頁 https://developers.google.com/analytics/devguides/collection/ios/v2/migration

1

解釋以防萬一試試這個:

id tracker = [[GAI sharedInstance] trackerWithTrackingId:@「YOUR ID」];
[tracker sendView:@「you text」];

導入下面的應用程序委託:

進口 「GAI.h」
進口 「GAITrackedViewController.h」

但是,請確保您的GA跟蹤ID是對於網頁不 ...它必須是特定的移動應用。

我希望它能幫助,祝你好運!