简体   繁体   English

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

[英]Google Tag Manager Not Sending events in Ios

This is how I declared google tag manager container 这就是我声明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];

Below Is my debugger result 下面是我的调试器结果

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

Why this error is coming ,Please help 为什么会出现此错误,请帮助

I see the same in my logs but events are getting sent. 我在日志中看到了相同的内容,但事件正在发送。

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

and I can see events in GA 我可以在GA中看到事件

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

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