⏱️ Setup time: about 10 minutes | Level: Advanced
How do ad-blockers block tracking?
Ad-blockers (uBlock Origin, AdGuard, Brave) block:
- Requests to known tracking domains (google-analytics.com, gtm.js)
- JavaScript files with suspicious names (analytics.js, gtag.js)
- Requests containing tracking parameters
The solution? A custom loader — the GTM script loads from your own domain under a different name.
How it works
- 1A custom endpoint
Instead of googletagmanager.com, the GTM script loads from your subdomain
- 2A random file name
The script has a dynamic name that can't end up on a blocklist
- 3A data collect endpoint
Data is sent to your subdomain, not to google-analytics.com
Setup in the dashboard
- Go to Settings → Anti-adblock
- Activate the Custom Loader
- The system generates a code snippet for you
- Paste the snippet on the site in place of the standard GTM code
⚠️ Legal note: An anti-adblock solution must respect user consent. Always comply with GDPR and consent mode.