测试测试过 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
发布最后发布 | 2016年7月 |
由 Magnus Ottosson 维护。
依赖 | |
Google/Analytics | ~> 3.0.3 |
GBDeviceInfo | ~> 4.1.0 |
官方 Google Analytics 库的简单封装。编写更少的代码。
支持的安装方法是 CocoaPods。
pod 'GoogleAnalyticsHelper'
安装 Pod 后,应用程序启动时首先设置跟踪器
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Initialize with Google Analytics tracking id.
[GAH setupWithTrackerId:@"<#Tracking ID#>"];
//Or, you can set it up by dragging your GoogleService-Info.plist to your Xcode project and add it to all targets.
[GAH setupTracker];
...The rest of your customizations...
}
[GAH setTracksUncaughtExceptions:YES];
[GAH setSyncInterval:60];
[GAH setOptOut:YES];
[GAH setAnonymizeIp:YES];
[GAH setLogLevel:kGAHLogLevelVerbose];
[GAH setTrackBuildInfo:YES];
[GAH setTrackDeviceInfo:YES];
开发问题和问题在 Github 上跟踪。欢迎 Pull 请求。
受 BNEasyGoogleAnalytics 启发,并基于此。
GoogleAnalyticsHelper 在 MIT 许可证 下可用。