我已经在我的项目中使用cocoapods成功集成了Google Analytics iOS SDK(使用Swift语言)。谷歌Analytics(分析)Swift - 不显示更新的仪表板报告
- 新增的CocoaPods(
pod 'Google/Analytics'
) - 生成GoogleService-Info.plist文件并添加到项目一样,也是最后一步
- 初始化在AppDelegate.swift
的谷歌Analytics(分析)var configureError:NSError? GGLContext.sharedInstance().configureWithError(&configureError) assert(configureError == nil, "Error configuring Google services: (configureError)")
- 在viewdidappear中添加了屏幕视图代码
最后在模拟器或设备上运行该应用程序后,日志显示以下
3.14 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1 2016-07-21 13:05:25.265 HelloWorld[4264:206213] INFO: GoogleAnalytics 3.14 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:529): hit(s) Successfully deleted 2016-07-21 13:05:25.266 HelloWorld[4264:206213] INFO: GoogleAnalytics 3.14 -[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:237): 1 hit(s) sent
但是,同样没有在控制板(谷歌分析)反射? https://analytics.google.com/analytics/web
请帮忙。
是啊这是反映,荣誉@Lukas –