google-tag-manager - http GET, finding tag name for fired GTM event
问题描述
I want to see which GTM tag was fired by looking at the network tab in Chrome dev tools. Unfortunately, it looks that the data is compressed or something.
I'm in this situation because Google AMP pages don't allow the nice web based GTM debugger that's usually available. Thus you must use dev tools for QA.
The http calls use GET and have a path of /collect. I've expanded everything I can find and no dice.
Here's the summary line from my network tab:
collect?v=1&_v=a1>m=2agbc0GTM-N83V7HM&ds=AMP&aip…=&t=event&ec=&ea=&el=&a=1305&z=0.7694027908318071
I'm not sure if including a picture of my network tab would be useful since there's just so much information.
Any help is appreciated. There are quite a number of sites that tell you to use the network tab to debug GTM. But, I can't find any that help with deciphering its contents.
解决方案
/collect 是 Google Analytics 的端点。“t”参数表示这是什么类型的命中——在这种情况下,它是一个事件,由“ec”(事件类别)、“ea”(事件动作)和“el”(事件标签)进一步确认。
所以这是(如您所知)Google Analytics(分析)事件跟踪调用。然而,它不是一个有效的调用,因为强制参数(“ec”和“ea”)是空的。
唉,您无法从网络调用中获取 GTM 标签的名称。您必须启用预览模式,逐步浏览不同的 GTM 事件(调试面板的左侧)以查看它们是否触发 GA 代码。然后在预览面板的“标签”窗格中,您必须查看 GA 标签(单击标签信息中的“更多”链接)以查看哪个标签发送空值。
推荐阅读
- ruby-on-rails - 如何在postgresql rails中搜索具有多个值的数组列
- html - Angular如何使表头变粘
- javascript - Sendgrid API:如何发送带有单个模板数据的批量电子邮件?
- python - TypeError: 预期的 str、bytes 或 os.PathLike 对象,
- powerbi - Power BI - DAX - 将 30 分钟添加到由 DateDiff 创建的度量
- python - odoo 12 中的相关 res_partner
- mongodb - $lookup 后 MongoDB 的 $count 非常慢
- apache-kafka - 当另一个消费者加入同一个组时,分配给一个消费者的所有暂停分区都将被撤销
- ipv6 - 将 CIDR 表示法中的 IPv4 IP 范围映射到 IPv6
- python - 在 python 中从 Avro 模式转换为 Google BigQuery 模式?