简体   繁体   English

查找 Google Analytics onclick 事件跟踪代码脚本

[英]Finding Google analytics onclick event tracking code script

I am auditing a site that uses GTM to fire events on PDF clicks.我正在审核一个使用 GTM 触发 PDF 点击事件的站点。 We have access to GTM and updated the tag to categorize these clicks correctly.我们可以访问 GTM 并更新标签以正确分类这些点击。

However, I am still seeing the old version of event tracking showing up in Analytics.但是,我仍然在 Analytics 中看到旧版本的事件跟踪。

I am wondering if there is an onClick event being triggered to track PDF clicks.我想知道是否触发了onClick事件来跟踪 PDF 点击。 Is there a way to use the console to see what onClick events are being triggered and debug these events?有没有办法使用控制台查看正在触发哪些onClick事件并调试这些事件?

You can use Google Analytics Debugger add-on:您可以使用Google Analytics Debugger插件:

https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna

This extension loads the debug version of the Google Analytics Javascript for all sites you browse using Google Chrome.此扩展为您使用 Google Chrome 浏览的所有站点加载 Google Analytics Javascript 的调试版本。 It prints useful information to the Javascript console.它将有用信息打印到 Javascript 控制台。 These messages include error messages and warnings which can tell you when your analytics tracking code is set up incorrectly.这些消息包括错误消息和警告,当您的分析跟踪代码设置不正确时,它们会告诉您。 In addition, it provides a detailed breakdown of each tracking beacon sent to Google Analytics.此外,它还提供了发送到 Google Analytics 的每个跟踪信标的详细分类。

在此处输入图像描述

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

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