On this page
What this issue is
Google Tag Manager (GTM) is a free tool that loads your tracking tags from one place. Each container has an ID that looks like GTM-ABC1234. Your site loads the container through a small snippet that contains this ID.
The problem happens when the ID in the snippet is not the container you think it is. It may be a typo, an old container from a previous agency, a staging container, or one from a different client. You publish changes in the right container, but visitors load the wrong one.
Common causes: copying a snippet from the wrong account, cloning a site or theme that carries the old ID, a plugin setting with an outdated ID, or a redesign that pasted in an old snippet.
Why it costs you leads or sales
Everything you manage in the right container stops working on the live site: GA4, Google Ads conversions, Meta and other pixels. Ad platforms see no conversions, so reports look empty and bidding has nothing to learn from. Your site itself still looks fine, so nobody notices.
If the wrong container belongs to someone else, you may also send your visitors' data into an account you do not control.
- Visitor landsPage loads normally
- GTM snippet runsLoads GTM-OLD1234 instead of GTM-NEW5678
- Your tags fireNever loaded
- Conversion recordedAd platforms see nothing
The page loads, but the container that holds your tags never does.
Example: 40 real leads a week, but the ad platform sees none after the wrong ID goes live.
How to check if your site has it
Find the ID you should be using
Open tagmanager.google.com, pick your container and read the ID at the top of the workspace (GTM-XXXXXXX). Click it to see the install snippet.
View the page source
Open your live page, right-click and choose View page source, then search for
googletagmanager.com/gtm.js?id=andgoogletagmanager.com/ns.html?id=.Compare every match
Each ID found must match your container. Check the home page, a landing page, the checkout and the thank-you page, as templates can differ.
Use Preview mode
In GTM click Preview and enter your URL. If Tag Assistant says it cannot connect or finds no container, the page is probably loading another ID.
Check in the browser console
Type
google_tag_managerin the console and press Enter. The object lists the container IDs that loaded.
How to fix it
Replace the wrong ID with the correct one in every place it is installed. Where you do this depends on how GTM was added.
Check your GTM plugin
If you use a plugin such as Site Kit or a GTM plugin, open its settings and correct the container ID field.
Check theme and header code
Look in Appearance > Theme File Editor (header.php), or in any header and footer scripts plugin, for a hard-coded snippet with the old ID. Remove duplicates.
Check theme.liquid
Go to Online Store > Themes > Edit code and open theme.liquid. Search for GTM- and fix the ID in both the head script and the body noscript.
Check Customer events and apps
In Settings > Customer events, look for custom pixels carrying the old ID, and check any installed tracking app.
Edit custom code
Open Project settings > Custom code, correct the ID in the Head code and Footer code boxes, then publish the site.
Check page-level code
Open each page's settings and check its custom code section for another snippet.
Check Marketing integrations
In Marketing & SEO > Marketing integrations, open Google Tag Manager and correct the container ID.
Check Custom code
In Settings > Custom code, remove any pasted snippet with the old ID, then publish.
Edit Code Injection
Go to Settings > Advanced > Code Injection and correct the ID in the Header and Footer boxes. Save.
Check page-level injection
Page settings > Advanced can hold its own code, so check key pages.
Check funnel and website tracking code
Open each funnel or site, go to Settings > Tracking Code, and correct the Head and Body code. Also check page-level custom code.
Save and republish
Publish the funnel again so the live pages carry the new ID.
Copy the correct snippet
In your workspace click the container ID at the top to open Install Google Tag Manager, and copy both parts from there rather than typing the ID.
Confirm the account
Make sure you are in the right account and container in the container picker, especially if you have access to several clients.
Search the codebase
Search all templates, includes and config files for
GTM-and replace each wrong ID. Check environment variables if the ID is injected at build time.Deploy and clear caches
Deploy, then purge your CDN and page cache so visitors do not get old HTML.
<!-- In <head>, as high as possible -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXXX');</script>
<!-- Right after the opening <body> tag -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>How to confirm it's fixed
- View source on the live page shows only your GTM ID, in both the script and the noscript parts
- Typing google_tag_manager in the console lists your container
- GTM Preview connects to the live URL and shows your tags
- GA4 DebugView or Realtime shows the test visit
- Key tags (conversion, pixels) fire on the thank-you page
- The ID is correct on the home page, landing pages, checkout and thank-you page
How to prevent it happening again
- Keep a record of the correct GTM ID for each site
- Copy snippets from GTM's install screen instead of typing them
- Use separate containers for staging and production, and never copy staging code live
- Check the ID after cloning a site, switching themes or a redesign
- Remove old agency containers when you hand over a site
- Re-check the live page source after every release
How FunnelGuard handles this
FunnelGuard detects this issue today. Its check looks at the tag IDs found on your live pages as a robot visitor runs your journeys, and compares them with the IDs you expect. If a different GTM container loads, or yours is missing, you get one alert with a screenshot and a likely cause.
A failure is re-checked from a second region before the alert goes out. Alerts can go to email, Slack, Teams, WhatsApp, webhook or PagerDuty. The Free plan covers 1 site and 2 journeys with daily checks and no card. A free read-only website audit is also available.
Questions people ask
Why is my Google Tag Manager not firing any tags?
A common cause is that the page loads a different container ID than the one you edit. View the page source, search for gtm.js?id= and compare the GTM-XXXXXXX value with your container. If they differ, replace the snippet ID.
How do I find which GTM container is installed on my website?
Open the live page, view the source and search for googletagmanager.com/gtm.js?id=. The ID after id= is the container. You can also type google_tag_manager in the browser console to list loaded containers.
Where do I find my GTM container ID?
Sign in at tagmanager.google.com and open your container. The ID in the format GTM-XXXXXXX shows at the top of the workspace. Click it to see the full install snippet.
How do I change the GTM container ID on my website?
Replace the ID in both the head script and the body noscript, or in the plugin or integration setting that adds them. The place depends on your platform, such as theme.liquid on Shopify or Code Injection on Squarespace. Then publish and clear caches.
Can a wrong GTM ID affect Google Ads conversions?
Yes. If the container that holds your conversion tags never loads, Google Ads receives no conversions from that site. Reports show zero or falling conversions even though leads keep arriving.
Why does GTM Preview mode say it cannot find my container?
Tag Assistant looks for the container you are previewing on that page. If the site loads a different ID, or the snippet is missing, it cannot connect. Check the source for the ID first.
Can I have two GTM containers on one site?
Technically yes, but it often causes duplicate or conflicting tags. If an old container is still installed, move anything you need into your container and remove the old snippet.
How can I be alerted if the GTM ID changes?
A synthetic monitor can load your pages on a schedule and compare the tag IDs found with the ones you expect. FunnelGuard does this and sends an alert with a screenshot when the container is wrong.
Related issues
- TRK-099GTM container snippet missingFix guide
- TRK-101Two GTM containers fighting (old agency + new)Fix guide
- TRK-104GTM noscript iframe in head instead of bodyFix guide
- TRK-105GTM snippet placed in footer, firing lateFix guide
- TRK-102GTM container published version changed unexpectedlyFix guide
- TRK-103Workspace changes never published (tag in preview only)Fix guide