Konfiguration

Custom GTM Script Loader

Lukas Becker
by Lukas Becker

The heytag GTM Script Loader replaces the direct inclusion of gtm.js with an obfuscated loader script.

In standard implementations, the Google Tag Manager web container is loaded directly via the gtm.js file. This file is widely recognized and is specifically detected and blocked by some browser mechanisms and privacy tools.

When using the heytag GTM Script Loader, gtm.js is converted into a loader file with a neutral name, so that neither the GTM ID nor the GTM prefix are visible in the frontend.

The file name is based on the public heytag ID.

Each customer receives their own unique heytag ID, which serves as a stable identifier for the integration.

This approach avoids GTM-specific patterns and references in the frontend, making tracking more robust against simple blocking or filtering mechanisms.

Example

Classic GTM integration

<script src="https://www.googletagmanager.com/gtm.js?id=GTM-XXXX"></script>

Integration with the Heytag GTM Script Loader

<script src="https://data.ihredomain.de/abc123.js"></script>
Back to overview