【问题标题】:Google Tag Manager Not Sending events in IosGoogle 跟踪代码管理器未在 Ios 中发送事件
【发布时间】:2015-03-05 12:23:09
【问题描述】:

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

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

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

【问题讨论】:

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


    【解决方案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 中看到事件

    【讨论】:

      猜你喜欢
      • 2013-08-14
      • 2021-10-30
      • 1970-01-01
      • 2022-07-01
      • 2022-06-22
      • 1970-01-01
      • 1970-01-01
      • 2022-11-26
      • 1970-01-01
      相关资源
      最近更新 更多