Published: 21 November 2026
Importing a GTM container: find the IDs, merge, test
How to import a GTM template: where to find your GA4, container and Google Ads IDs, why you merge instead of overwrite, then preview, publish and roll back.
Every one of my GTM templates is a JSON file you import into your Google Tag Manager. The import itself takes two minutes. What goes wrong is almost always the same: the wrong import option, a forgotten ID, or a container that never got published.
This guide applies to all the templates. What a single template measures, and what you still need to set up afterwards, is in the article on that template.
1. The IDs you need
Most templates ask for two to four values. If you enter them in the GTM configurator before you download the file, the placeholders are already replaced. If you leave a field empty, the placeholder stays in the container and you enter the value directly in GTM later.
| Value | Format | Where to find it |
|---|---|---|
| GA4 Measurement ID | G-XXXXXXXXXX |
Google Analytics → Admin (gear icon) → Data streams → click your web stream. The ID is at the top right. |
| GTM container ID | GTM-XXXXXXX |
In Tag Manager at the top, next to the container name. |
| Google Ads Conversion ID | AW-123456789 |
Google Ads → Goals → Conversions → Summary → click the conversion action → Tag setup → Use Google Tag Manager. |
| Google Ads Conversion Label | e.g. AbC-D_efGhIjKlM |
In the same window, directly below the Conversion ID. |
Two things to note. The Conversion ID is the same for every conversion action in an account, the label isn’t. If a template measures three conversions, you need three labels from three conversion actions. And the container ID doesn’t matter for the import itself, since you’re importing into your real container anyway. In the configurator it only goes into the file name.
2. Importing the container
- Open Tag Manager and select your website’s container.
- Click Admin at the top, then Import Container.
- Choose container file: the JSON file you downloaded.
- Choose workspace: pick New and give it a name like “Import Calendly template”. That way your current workspace stays untouched, and you can discard the import without cleaning anything up.
- Import option: Merge, then Rename for conflicts.
- GTM now shows you a preview: how many tags, triggers and variables are new, modified or deleted. If the “deleted” count is above zero, cancel and check the import option.
- Confirm.
Merge or overwrite?
Overwrite replaces your entire container with the file. Anything that was in it before and isn’t in the file is gone afterwards: your GA4 tag, your Meta pixel, your cookie banner integration. With a template you never want that.
Merge adds the items from the file on top. If an item with the same name already exists, you decide:
- Rename: the imported item gets a new name, and your existing one stays as it is. That’s the safe choice.
- Overwrite: the imported item replaces your existing one with the same name. Only useful if you deliberately want to update an older import of the same template.
When merging, GTM deletes nothing. So you may end up with two items that do a similar job, two Conversion Linkers for example. You clean that up in the next step.
3. Checking placeholders and duplicates
Before you test, search the workspace for the placeholders my templates use: XXXX, EDIT, EXCHANGE, YourLabelHere, INSERT_CONVERSION_LABEL. Every hit is a value that’s still missing. A conversion tag with a placeholder label still fires, but the conversion never arrives in Google Ads.
Then the duplicates:
- Two Google tags with the same GA4 ID count every page view twice. If you already have a GA4 tag, pause the imported one or delete it.
- Two Conversion Linkers do no harm, but one is enough.
- Two conversion tags for the same action (one from the template, one from before) count every conversion twice. In Google Ads that only becomes visible after a few days.
4. Testing in preview
Click Preview. Tag Assistant opens, you enter your website’s URL, and the site loads in a new window with a debug connection.
Now trigger exactly the action the template is supposed to measure: book an appointment, submit a form, copy the phone number, place a test order. In Tag Assistant you see the events on the left, and on the right which tags fired on which event and which didn’t.
If a tag didn’t fire, click it. Tag Assistant shows you the trigger condition with a red cross at the part that wasn’t met. Usually that’s an event name that doesn’t match or a data layer variable that’s empty.
For GA4, also check in Google Analytics under Admin → DebugView whether the events arrive. Google Ads has no live view: the conversion only appears in the “All conv.” column after a few hours.
5. Publishing
Only your own browser sees the preview. For every other visitor the container only applies once it’s published.
- Click Submit at the top right.
- Version name: something you’ll still understand in three months, for example “Calendly bookings as GA4 event”.
- Publish.
If something goes wrong afterwards, go to Versions, open the version from before your import and click Publish in the menu at the top right. The old state is live again straight away. That’s why a descriptive version name is worth it.
6. Don’t forget consent
If the imported tags only fire after consent, that’s not down to the template but to your consent setup. Google tags follow the Consent Mode status your cookie banner sets. If the default status is missing entirely, they behave differently depending on the region. How to set that up properly is in setting up Consent Mode v2. For Webflow with Finsweet there’s a dedicated template.
The templates
- LeadGen container: phone, email and forms as Google Ads conversions, including copying
- Perspective funnel: funnel completion with enhanced conversions
- Calendly: appointment bookings as GA4 events
- Funnel steps: six steps for drop-off analysis
- Shopify: purchase conversion with enhanced conversions via the custom pixel
- WordPress with GTM4WP: GA4 e-commerce with a single tag
- Finsweet Consent Mode v2: Consent Mode for Webflow
Want someone to set up your tracking properly once and check it? Write to me.
Importing a GTM container: find the IDs, merge, test
Which measurement gap should you close first?
I help you identify which conversion and consent questions need answers before your next campaign decision.
The link opens a free intro call. I agree the session scope and price with you before paid work begins.
About the author
Daniils Visnakovs
Independent sparring partner for Google Ads economics and measurement quality. Daniils did technical measurement implementation work for Google. Today he helps teams make better decisions and keep the knowledge in-house: in 1:1 consulting, workshops or on stage.