我想将 Google Analytics Tracking 集成到我的 IOS APP 中。
我已经集成了谷歌分析库并将其添加到我的应用程序中。
这是我的代码片段,
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[UIApplication sharedApplication].statusBarHidden = NO;
[GAI sharedInstance].trackUncaughtExceptions = YES;
[GAI sharedInstance].dispatchInterval = 1;
[GAI sharedInstance].debug=YES;
[[GAI sharedInstance] trackerWithTrackingId:@"UA-43556575-1"];
return YES;
}
我的代码FirstViewController
- (void)viewDidLoad
{
[super viewDidLoad];
self.trackedViewName = @"Home";
....
....
}
我添加的库列表,(首先我从下载文件夹中复制了所有这些库,然后添加到我的项目文件夹中,然后在 Xcode 中我从项目文件夹中获取参考)
- GAI.h
- GAITrackedViewController.h
- GAITracker.h
- GAITransaction.h
- GAITransactionItem.h
- libGoogleAnalytics.a
差不多5天了,仍然遇到同样的问题:(
:
请帮忙...
感谢您阅读并提前致谢。