Diese Seite ist noch nicht auf Deutsch verfügbar, daher zeigen wir die englische Version.

Google Tag Manager Snippet Generator — Container Install Code

Enter your GTM container ID and get the Google Tag Manager install code for the <head> and <body>, with Consent Mode v2 defaults placed before the container so every tag inside it waits for consent.

Aktualisiert am

In the <head>, as high as possible

Right after the opening <body> tag

In Webflow paste the head code in Site settings → Custom code → Head code. Using the cookie banner generator? Put its first snippet above this one.

Deine Daten verlassen nie deinen Computer. Die Verarbeitung erfolgt zu 100 % lokal im Browser.

So nutzt du: GTM Snippet Generator

  1. Enter your container ID (GTM-…) from the top of Tag Manager.
  2. Keep Consent Mode v2 defaults on if your site shows a cookie banner.
  3. Paste the first block in the <head> and the second right after <body>.
  4. Publish, then open Preview in Tag Manager to check the container loads.

Why consent defaults go first

Tags in a container read consent the moment they fire. Setting denied defaults in a script above the container means nothing stores cookies before the visitor chooses — the banner then updates consent and Tag Manager re-evaluates the waiting tags. The body <noscript> iframe only matters for visitors without JavaScript. Push events into the container with the dataLayer Push Generator.

Auch gesucht als: google tag manager snippet, gtm install code, gtm container code, gtm code generator, gtm noscript, tag manager consent mode, gtm webflow.

Passende Tools zu: GTM Snippet Generator

  • Google Tag Snippet Generator — Enter your GA4 measurement ID, Google Ads ID or Tag Manager container ID and get install code that is ready to paste — with Consent Mode v2 defaults, cross-domain linking, debug mode, manual page views and cookie settings switched on only when you need them.
  • Cookie Consent Banner Generator — Add a cookie consent banner to any site — Webflow, WordPress, Shopify or plain HTML — without a paid plugin.
  • Tracking & Pixel-Checker — Gib eine URL ein, um alle Analytics-Tags, Werbe-Pixel und Tag-Manager auf der Seite zu finden – einschließlich ihrer IDs, der im Google Tag Manager geladenen Elemente, des Cookie-Einwilligungstools sowie der Verifizierungs-Tags für die Search Console und Bing.
  • Event Tracking Script Generator — Track button clicks, links and form submits by adding attributes instead of code: data-track="sign_up_click" plus optional data-track-* parameters.

Häufige Fragen

Where does the noscript part go?
Right after the opening tag. In Webflow, which has no body-start slot, put it at the top of the Footer code — or leave it out; it only affects visitors with JavaScript turned off.
Can I rename the dataLayer?
You can, but every push must use the same name. Keeping the default dataLayer avoids mistakes.
How do I check that GTM is installed?
Open Preview in Tag Manager and enter your site URL. If the container is installed, Tag Assistant connects and lists the tags that fire on each page.
Kann ich GTM Snippet Generator als Web-App installieren und offline nutzen?
Ja. GTM Snippet Generator ist eine installierbare Web-App (PWA) – sie wird über Ihren Browser installiert und nicht aus einem App-Store heruntergeladen. Klicken Sie oben auf dieser Seite in Chrome oder Edge (Windows, macOS, Linux, ChromeOS) auf „App installieren“ oder verwenden Sie auf Android-Geräten „Teilen“ → „Zum Startbildschirm hinzufügen“ auf dem iPhone und iPad bzw. „Datei“ → „Zum Dock hinzufügen“ in Safari 17+ auf einem Mac. Die App öffnet sich dann in einem eigenen Fenster mit einem eigenen Symbol, und da sie vollständig in Ihrem Browser ausgeführt wird, funktioniert sie auch offline. Firefox auf dem Desktop kann keine Web-Apps installieren. So funktioniert die Installation.

Ähnliche Tools