Free GTM container generator for Google Tag Manager
What the generator does
This GTM container generator builds a ready-to-import Google Tag Manager container from the tags you choose. Pick GA4, Google Ads, Meta Pixel or Consent Mode v2, type in your IDs, and you get a clean .json file that imports straight into GTM. It all runs in your browser, so your IDs never leave your device.
How it works
Tick the tags you want, fill in the IDs they ask for, and download. The generator only shows the fields your selection needs, and it checks each one before you export.
Real GTM tags
Choose GA4 base code, engagement and ecommerce events, Google Ads, Meta Pixel and Consent Mode v2 from grouped categories.
Only the fields you need
A field shows up when a selected tag requires it, and it checks the format (G-XXXX, AW-XXXX) before you generate.
Import-safe .json output
Tag names default to plain ASCII English, the variant that imports into any GTM account without encoding trouble.
Runs in your browser
The container is built client-side. Your IDs and choices stay on your device, and nothing is uploaded.
Automatic site scan
Type your site address and the generator checks what's already there: GA4, Google Ads, Meta Pixel or GTM. From what it finds, it ticks the tags that suit your kind of site and fills in the IDs it can read from the page. You decide whether to take the recommendation or pick manually. On sites that load their tags through JavaScript, some IDs aren't visible in the source, so you fill those in yourself.
What you can generate
GA4 tracking, validated
Base code plus scroll, time on page, outbound clicks, file downloads, form leads and the full ecommerce event set.
Google Ads conversions
Conversion tracking, remarketing and the conversion linker, ready for your Ads account.
Meta Pixel
The Meta (Facebook) Pixel base code as a Custom HTML tag, firing PageView on every page.
Consent Mode v2
A default consent state that runs before your other tags, set up the way Consent Mode v2 expects.
Why use it
Most GTM templates online are fixed files you download and then trim down. This GTM container generator builds the container around your choices instead, so you import only the tags you asked for. You still review it in GTM before publishing, and the import never touches your live site on its own.
Generate your GTM container now
Pick your tags above, add your IDs, and download a Google Tag Manager container you can import in a couple of minutes.