Google Tag Manager Loader

Async GTM script loader with async-script-loader

Demo

GTM Container ID: GTM-TJC7PXJ6

Event Log

Ready to load GTM. Click the button above.

DataLayer Contents

dataLayer not initialized

How It Works

  1. Click "Load Google Tag Manager" button
  2. The googleTagManagerLoader() function is called with container ID
  3. It initializes the dataLayer with GTM start event
  4. Uses @zoltanradics/async-script-loader to load gtm.js
  5. Returns a Promise that resolves when GTM is loaded
  6. GTM tags and triggers will fire automatically based on your configuration