这就是我宣布谷歌标签管理器容器的方式
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
为什么会出现此错误,请帮助
答案 0 :(得分:0)
我在日志中看到相同的内容,但事件正在发送。
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中看到事件