ios - Google Analytics Swift - 不显示更新的仪表板报告

标签 ios swift google-analytics

我已经在我的项目中使用 cocoapods 成功集成了 Google Analytics iOS SDK(使用 Swift 语言)。

  1. 添加了 Cocoapods(pod 'Google/Analytics')
  2. 生成 GoogleService-Info.plist 文件并将其添加到项目和最后一步
  3. 在 AppDelegate.swift 中初始化 Google Analytics

var configureError:NSError? GGLContext.sharedInstance().configureWithError(&configureError) assert(configureError == nil, "Error configuring Google services: (configureError)")

  1. 在 viewdidappear 中添加了屏幕 View 代码

最后在模拟器或设备上运行应用程序后,日志显示如下

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

但在仪表板(Google Analytics)中没有反射(reflect)出来吗? https://analytics.google.com/analytics/web

请帮忙。

最佳答案

尝试在实时部分进行检查,并在单击按钮时添加一些事件以便在需要测试时能够发送报告 您确定将其添加为移动应用程序吗?如果它作为网络工作,它在报告中会有很长的延迟。

关于ios - Google Analytics Swift - 不显示更新的仪表板报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38500223/

相关文章:

android - Android- fragment 中的Firebase Analytics

iphone - iOS App 中的按钮不会显示

ios - 带有渐变背景的白边 IOS

swift - 如何从特定点播放歌曲?

ios - 如何在 Swift 4 中将条件实现到 UITableViewDataSource

ios - 将字符串保存到 NSUserDefaults?

javascript - DOM 事件在被停止或阻止后是否可以允许其默认行为?

javascript - 如何使用Youtube Api和Google Analytics(分析)跟踪多个YouTube视频

ios - UICollectionViewCell 索引号不准确

android - 未找到 react native 命令