ios - Google 跟踪代码管理器未在 Ios 中发送事件

标签 ios objective-c google-analytics google-tag-manager

这就是我声明 Google 标签管理器容器的方式

self.tagManager = [TAGManager instance];
[self.tagManager.logger setLogLevel:kTAGLoggerLogLevelVerbose];

[TAGContainerOpener openContainerWithId:@"GTM-XXXX"   // Update with your Container ID.
                             tagManager:self.tagManager
                               openType:kTAGOpenTypePreferFresh
                                timeout:nil
                               notifier:self];

下面是我的调试器结果

 GoogleTagManager info: GoogleAnalytics 3.10 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:208): Hit(s) dispatched: HTTP status -1

为什么会出现这个错误,请帮忙

最佳答案

我在日志中看到相同的内容,但事件正在发送。

2015-06-03 15:25:12.313 MyApp[49369:487639] GTM Info: GoogleAnalytics 3.12 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1
2015-06-03 15:25:12.314 MyApp[49369:487711] GTM Info: GoogleAnalytics 3.12 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:529): hit(s) Successfully deleted
2015-06-03 15:25:12.316 MyApp[49369:487711] GTM Info: GoogleAnalytics 3.12 -[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:237): 1 hit(s) sent

我可以看到 GA 中的事件

关于ios - Google 跟踪代码管理器未在 Ios 中发送事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28877803/

相关文章:

ios - 无法将类型 'TestApplication.ViewControllerResultat' 的值转换为 'TestApplication.ViewControllerForkertKorrektSide'

iphone - 帮助理解 UIVIewController 和 UIView 子类之间的交互

objective-c - 在两个 NSString 中保留换行符

ios - 如何根据其中包含的某些值过滤数组

python - 将虚拟综合浏览量提交到谷歌分析服务器端

php - 从 Analytics 中隐藏 Javascript 文件

ios - 输入邮政编码开关查看 Controller (如果在 Parse 中找到)(Swift 和 XCode)

ios - GCD 和 webView 的死锁

java - 当用户不在线时,Google Analytics 是否离线存储数据?

ios - JSON 未验证