简体   繁体   中英

Finding Google analytics onclick event tracking code script

I am auditing a site that uses GTM to fire events on PDF clicks. We have access to GTM and updated the tag to categorize these clicks correctly.

However, I am still seeing the old version of event tracking showing up in Analytics.

I am wondering if there is an onClick event being triggered to track PDF clicks. Is there a way to use the console to see what onClick events are being triggered and debug these events?

You can use Google Analytics Debugger add-on:

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. It prints useful information to the Javascript console. 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.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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