如何调试谷歌标签管理器ios

时间:2015-12-31 05:35:53

标签: swift google-tag-manager

我关注this guide但是,在我的控制台日志中,这就是我得到的

2015-12-31 13:29:20.088 Offpeak[4391:1963569] GoogleTagManager verbose: GoogleAnalytics 3.14 __70-[GAIBatchingDispatcher checkIAdCampaignAttributionWithHitParameters:]_block_invoke (GAIBatchingDispatcher.m:749): iAd campaign tracking disabled because the iAd framework is not linked. See http://goo.gl/426NGa for instructions.
2015-12-31 13:29:20.112 Offpeak[4391:1963501] GoogleTagManager info: GoogleAnalytics 3.14 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000002
2015-12-31 13:29:20.116 Offpeak[4391:1963501] GoogleTagManager verbose: Setting refresh time to saved time: 1451535770832
2015-12-31 13:29:20.116 Offpeak[4391:1963501] GoogleTagManager verbose: scheduleTask: containerId=GTM-NL54HS delay=39210715.295898
location <+3.08156886,+101.58254363> +/- 100.00m (speed 0.00 mps / course -1.00) @ 12/31/15, 1:29:20 PM Malaysia Time
2015-12-31 13:29:20.331 Offpeak[4391:1963501] GoogleTagManager info: GoogleAnalytics 3.14 -[GAIReachabilityChecker reachabilityFlagsChanged:] (GAIReachabilityChecker.m:159): Reachability flags update: 0X000002
2015-12-31 13:29:21.039 Offpeak[4391:1963569] GoogleTagManager verbose: GoogleAnalytics 3.14 -[GAIRequestBuilder requestGetUrl:payload:] (GAIRequestBuilder.m:195): building URLRequest for https://ssl.google-analytics.com/collect
2015-12-31 13:29:21.040 Offpeak[4391:1963569] GoogleTagManager verbose: GoogleAnalytics 3.14 -[GAIBatchingDispatcher dispatchWithCompletionHandler:] (GAIBatchingDispatcher.m:632): Sending hit(s) GET: https://ssl.google-analytics.com/collect?ul=en&_v=mi3.1.4&an=Offpeak&dm=iPhone8%2C1&a=611823250&_s=10&ds=app&aid=com.offpeak.app&sr=640x1136&t=appview&tid=UA-51741047-1&cd=Home&v=1&cid=639ccb24-4dca-4def-86c2-21171a7e2bbb&_u=.4nL&av=1.2.5&_crc=0&ht=1451539760069&qt=970&z=3038422919361813367
2015-12-31 13:29:21.122 Offpeak[4391:1963501] GoogleTagManager info: GoogleAnalytics 3.14 -[GAIBatchingDispatcher didSendHits:response:data:error:] (GAIBatchingDispatcher.m:226): Hit(s) dispatched: HTTP status -1
2015-12-31 13:29:21.123 Offpeak[4391:1963569] GoogleTagManager info: GoogleAnalytics 3.14 -[GAIBatchingDispatcher deleteHits:] (GAIBatchingDispatcher.m:529): hit(s) Successfully deleted
2015-12-31 13:29:21.129 Offpeak[4391:1963569] GoogleTagManager info: GoogleAnalytics 3.14 -[GAIBatchingDispatcher didSendHits:] (GAIBatchingDispatcher.m:237): 1 hit(s) sent

我可以问一下如何进行调试以获取有关

删除命中的原因的更多信息
  

2015-12-31 13:29:21.123

1 个答案:

答案 0 :(得分:0)

我可以看到appview是在 2015-12-31 13:29:21.040 上发送的。 通常,移动应用中的数据收集具有调度持续时间。 GTM SDK将保留命中并稍后发送。

您正在谈论的删除点击是发送给GA的点击,&amp; GTM SDK已成功删除本地设备的命中信息并将其登录到控制台。

如果再次记录此类匹配,您可能希望通过向GA发送事件匹配来检查此情况。另外,请检查您的GA以进行数据验证。