Přeskočit na obsah
ADVANCED SETUP

Anti-adblock and the custom loader

How to bypass ad-blockers with a custom loader and a first-party endpoint for maximum data collection.

10 min čtení Pokročilý Aktualizováno 5.6.2026

⏱️ 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

  1. 1
    A custom endpoint

    Instead of googletagmanager.com, the GTM script loads from your subdomain

  2. 2
    A random file name

    The script has a dynamic name that can't end up on a blocklist

  3. 3
    A data collect endpoint

    Data is sent to your subdomain, not to google-analytics.com

Setup in the dashboard

  1. Go to Settings → Anti-adblock
  2. Activate the Custom Loader
  3. The system generates a code snippet for you
  4. 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.

Pomohl vám tento článek?
✓ Děkujeme za zpětnou vazbu