我正在尝试在 iOS 上使用其 SDK(3.11)向 Google Analytics 发送一个屏幕,但即使 24 小时后,GA 控制台上也没有发生任何事情。
我仔细检查了看起来像这个 UA-xxxxxxx-x 的标识符。
这是我用来设置 SDK 的代码:
在我的 AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [GAI sharedInstance].optOut = YES; [GAI sharedInstance].dispatchInterval = 1; [GAI sharedInstance].trackUncaughtExceptions = YES; [[[GAI sharedInstance] logger] setLogLevel:kGAILogLevelVerbose]; [[GAI sharedInstance] trackerWithTrackingId: self.config.googleAnalyticsTrackingId]; return YES; }
在我的 ViewController 中,它继承自 GAITrackedViewController
- (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; self.screenName = @"MyControllerScreen"; }
任何的想法 ?