繁体   English   中英

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

[英]Google Tag Manager Not Sending events in Ios

这就是我声明Google Tag Manager容器的方式

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中看到事件

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM