skip to content
GTM Container Builder – Simple & Safe
skip to content

GTM Container Builder (Simple & Safe)

Fill the form below and click Generate JSONDownload. Import the file into Google Tag Manager. No coding needed.

How this works
  1. Retargeting pixels fire on pages (All pages or specific URL contains).
  2. Conversion pixels fire on dataLayer.push({ event: 'dl_…' }) custom events.
  3. We sanitize tag/trigger names to avoid GTM import errors (no :, quotes, etc.).
  4. (Optional) Consent Mode scaffold is added as a Trigger Consent Initialization + an HTML tag that sets defaults.
Project basics

GA4 config tag is created automatically and fires a page_view on All Pages.

Retargeting pixels (page-based)

Each item becomes a Custom HTML tag. Choose All Pages or limit to pages where the URL contains a substring.

Conversion pixels (event-based)

Each item becomes a Custom HTML tag that fires on a dl_* custom event (e.g., dl_purchase).

dataLayer guide (common events)

Use these when you create Conversion pixels. Fire with dataLayer.push({ event: 'dl_event' }).

Show examples
dl_add_to_cart
dataLayer.push({
  event: 'dl_add_to_cart',
  value: 59.9,
  currency: 'USD',
  items: [{ item_id:'SKU1', quantity:1, price:59.9 }]
});
dl_purchase
dataLayer.push({
  event: 'dl_purchase',
  transaction_id: 'T12345',
  value: 129.9,
  currency: 'USD',
  items: [{ item_id:'SKU1', quantity:2, price:64.95 }]
});
dl_view_item
dataLayer.push({
  event: 'dl_view_item',
  items: [{ item_id:'SKU1', item_name:'Example', price: 39.9 }]
});
dl_begin_checkout
dataLayer.push({
  event: 'dl_begin_checkout',
  value: 129.9,
  currency: 'USD',
  items: [{ item_id:'SKU1', quantity:2 }]
});
dl_login
dataLayer.push({ event: 'dl_login', method: 'password' });
dl_sign_up
dataLayer.push({ event: 'dl_sign_up', method: 'email' });
dl_search
dataLayer.push({ event: 'dl_search', search_term: 'blue shoes' });
dl_view_cart
dataLayer.push({ event: 'dl_view_cart' });
Checklist (before import)
  • No colons or quotes in names (Tag/Trigger/Variable/Container are sanitized automatically).
  • Retargeting uses PAGEVIEW with Page URL contains (or All Pages).
  • Conversion uses CUSTOM_EVENT on _event == dl_* .
  • GA4 Config tag exists and fires on All Pages.
  • (Optional) Consent scaffold uses a Consent Initialization trigger + HTML tag (not a special consent tag type).
  • Exported file is exportFormatVersion: 2.
Preview