Meta Description (≤170 characters):
Learn how to test if ad blockers are blocking Google Tag Manager (GTM) events and scripts, and how to bypass it using a custom URL.
Why Ad Blockers Block Google Tag Manager
Most ad blockers (like uBlock Origin, AdGuard, or Safari’s Intelligent Tracking Prevention) automatically block Google Tag Manager (GTM) scripts.
Since GTM is a common tracking tool, its default script URL (https://www.googletagmanager.com/gtm.js) gets blacklisted.
👉 Solution: Host your GTM container script under your own domain (custom URL). Example:
This way, ad blockers won’t immediately recognize and block it.
How to Test If Your GTM Is Blocked or Working
Once you’ve set up a custom GTM script, follow these steps to check if ad blockers are blocking it or not.
1. Check Using Browser Developer Tools
-
Open your website in Chrome, Safari, or Brave.
-
Press
F12→ go to the Network tab. -
Reload the page.
-
Filter requests with
.jsor your custom GTM script URL.
👉 If you see Status = 200 (OK), your GTM script is loading successfully.
👉 If you see (blocked: other) or no request at all, the ad blocker is blocking it.
2. Use GTM Preview & Debug Mode
-
Go to Google Tag Manager → Preview Mode.
-
Enter your site URL and start the debug session.
-
Interact with your page (form fill, button click, etc.).
👉 If your tags and triggers fire correctly, then GTM is working.
👉 If nothing appears in the debug panel, the script is blocked.
3. Compare With Ad Blocker On vs Off
-
Turn on an ad blocker (uBlock, AdGuard, Brave browser).
-
Reload your page and check the Network tab again.
-
Then turn off the ad blocker and reload.
👉 If both times the GTM script loads, your custom domain has successfully bypassed the block.
👉 If it disappears when ad blocker is ON, you need further obfuscation or proxy settings.
4. Test on Different Devices & Browsers
-
iOS Safari (most aggressive with tracking prevention).
-
Chrome or Edge with uBlock Origin.
-
Brave browser (built-in ad blocking).
👉 This ensures your tracking works across all environments.
5. Check Server Logs
If your GTM is hosted on a custom subdomain, you can also confirm via server logs.
If the script request appears in your logs, it means the ad blocker didn’t block it.
No request = blocked.
Final Thoughts
By hosting Google Tag Manager on your own domain, you can often bypass common ad blockers. But you must test thoroughly across multiple browsers and devices.
✅ Use Developer Tools (Network tab)
✅ Use GTM Preview mode
✅ Compare Ad blocker ON vs OFF
✅ Test on iOS Safari, Chrome, Brave
✅ Check server logs
This way, you’ll know for sure if your GTM events are firing properly or being blocked.