What Chrome extension do you guys use nowadayes to confirm tags are firing?
Using Google Tag Manager with Google Analytics to track a Chrome Extension (2020)
I built a all-in-one Chrome extension to simplify tracking verification for Google Tag Manager (and 20+ networks)
Tag assistant extension not working
Videos
I really haven't messed around with Google Analytics much since UA. I used to use a tag assistant Chrome extension to verify my configuration was set up properly but I now see many of those plugins no longer work. What's the current way to do this? Thanks
Okay, for anyone still wondering how to add Analytics to a Chrome Extension, I've figured it out.
First of all, you have to use Universal Analytics (analytics.js), Google Analytics 4 (gtag.js) will not work. It doesn't handle tasks, and we will need to disable certain tasks in order to send hits. Also, it may be possible to use UA with Google Tag Manager, but after I got so deep into figuring this out I decided it would just be easier for me to implement tracking in the code myself. This video that shows you how to set up a UA property in Google Analytics.
In my code, I created a JavaScript file ga.js, with the typical google analytics tracking code that looks like this:
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga("create", "UA-XXXXX-X", "auto");
with two slight modifications: add the 'https:' in front of the google analytics url, and of course add your own UA property id.
After that, we have to disable checkProtocolTask by adding
ga('set', 'checkProtocolTask', null);
This disables file protocol checking, which we need because google analytics aborts the hit if it's not originating from an http or https protocol (this is originating from a 'chrome-extension://' protocol). I also found I needed to disable checkStorageTask in the same manner, though I am less sure why I needed to do that. All of the resources I have found say that only the checkProtocolTask needs to be disabled to use GA in a CE. My best guess is because my extension isn't a popup, but an injected iFrame, so the cookie permissions are different. I asked this question about it, but haven't gotten any responses. In order to still track user sessions without the use of cookies, I used localStorage to store the ga clientId, as shown here.
I then linked this javascript file at the bottom of the head section of my html file, and added
"content_security_policy": "script-src 'self' https://www.google-analytics.com; object-src 'self'"
to my manifest.json. And Voila! It's working.
Some last minute notes: I definitely recommend using analytics_debug.js while debugging analytics, and if you are still having trouble figuring out the issue then try setting window.ga_debug = {trace: true}; to get an even more detailed log in the console. Also, when sending pageviews, it is important to include the page in the hit as so: ga('send', 'pageview', '/popup');.
This was an absolute headache to figure out, so I hope this helps someone!
Google launched a new version of Analytics: Google Analytics 4. And it provides good documentation of how to implement it for Chrome extensions. See: https://developer.chrome.com/docs/extensions/how-to/integrate/google-analytics-4
Hello everyone,
For those involved in managing digital advertising and analytics, verifying tracking implementations across various platforms is often a necessary task. Utilizing multiple pixel helper extensions and GA debug views to monitor Google Tag Manager, Google Ads, Meta, TikTok, GA4, and other systems can present efficiency challenges, particularly during the deployment of new campaigns or website features.
To address this, I have developed a Chrome extension called Zen Analytics Pixel Tracker. This tool aggregates data from 20+ trackers into a unified interface within your browser.
⬇️ Official website
⬇️ The extension is available for download here: Chrome webstore URL
⬇️ Reddit channel for supports, issues, and disscussion: r/zen_analytics
I invite you to explore Zen Analytics on the Chrome Web Store and share any feedback you may have. Please be aware that this product is currently in its beta phase. Your insights regarding functionality, any encountered issues, or suggestions for future enhancements are welcome. During this beta period, all premium features are accessible for evaluation at no cost. Thank you for your time.
Hi everyone, both my Tag Assistant and Tag Assistant Companion extensions from the Chrome Web Store suddenly broke. Chrome says "This extension may be corrupted" and when I hit "Repair," nothing happens. I also tried removing and reinstalling them still broken.
Not sure what caused this or how to fix it. Anyone else running into the same issue? Anyone knows how to fix it?