Přeskočit na obsah
ADD-ONS

Custom Loader — Anti-adblock GTM loader

Load the gtm.js script from your own domain, raise the cookie match rate by 30%+, and eliminate ad-blocker blocking.

10 min čtení Středně pokročilý Aktualizováno 5.6.2026

What is the Custom Loader?

The Custom Loader is an add-on that replaces the standard loading of Google Tag Manager from https://www.googletagmanager.com/gtm.js with a custom loader script served directly from your domain (e.g. https://track.yourdomain.cz/l/gtm.js).

Why use the Custom Loader?

  • Bypasses ad-blockers: Ad-blockers block gtm.js from the Google domain, but not from your own.
  • Raises the cookie match rate: First-party cookies have a longer lifetime (up to 2 years vs. 7 days in Safari).
  • Better data: 30-40% more visitors with full tracking.

How to activate

  1. Go to Dashboard → Add-ons
  2. Turn on the "Custom Loader" toggle
  3. Select the domain (it must have an active sGTM container)
  4. Enter the GTM Container ID (e.g. GTM-XXXXXX)
  5. Choose the platform: gtm, gtag, or ga4
  6. Optionally: enable GA4 bypass, a Custom DataLayer variable, Cookie Keeper
  7. Click "Save Custom Loader"
  8. The loader will be available at: https://your-domain.cz/l/gtm.js

Integration into the site

Replace the standard GTM snippet in your <head>:

<!-- Instead of the standard GTM -->
<script async src="https://track.yourdomain.cz/l/gtm.js"></script>

Advanced options

  • GA4 Bypass: Adds direct GA4 measurement alongside GTM (dual tracking).
  • Custom DataLayer: Uses a custom dataLayer variable name (e.g. myDataLayer).
  • Cookie Keeper: Automatically backs up cookies to localStorage.
  • User Identifier: Adds a custom user identifier to all events.

💡 Tip:

Use the Custom Loader in combination with the Cookie Keeper add-on for maximum protection against ITP/ETP.

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