Iphone 谷歌分析不发送数据!正在获取0个活动用户

Iphone 谷歌分析不发送数据!正在获取0个活动用户,iphone,ios,google-analytics,google-analytics-api,Iphone,Ios,Google Analytics,Google Analytics Api,我在my-didFinishLaunchingWithOptions中使用以下代码。但我在GA中看不到任何活动用户。我需要添加更多配置吗 注意:UAYourTrackingID是正确的 // Optional: automatically send uncaught exceptions to Google Analytics. [GAI sharedInstance].trackUncaughtExceptions = YES; // Optional: set Google Anal

我在my-didFinishLaunchingWithOptions中使用以下代码。但我在GA中看不到任何活动用户。我需要添加更多配置吗

注意: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"];

我认为你的问题出在谷歌分析管理员身上

自“v2”测试版以来,您需要在google analytics管理员中添加一个“应用程序”配置文件。现在你有了“网络”档案和“应用”档案

你不需要更改你的“UAYourTrackingID”,它只是为了区分“web”和“应用程序”

查看此网页:

我希望这是你的问题^^

编辑:您可以在“v2迁移”页面上找到解释

试试这个以防万一:

id tracker=[[GAI sharedInstance]trackerWithTrackingId:@“您的id”]
[跟踪器发送视图:@“您的文本”]

在应用程序中导入以下内容:

导入“GAI.h”
导入“GAITrackedViewController.h”

但是,请确保您的GA跟踪ID为而不是用于网页。。。它必须特定于移动应用程序。


我希望有帮助,祝你好运

你不会在第一天看到它们。耐心点,等到第二天,你会把所有的东西都列出来,至少对我来说是这样。活动用户也需要一些时间来显示