Reading time: ~4 minutes ยท Or watch the 2-minute video below
Your Google Tag Manager container ID is a small string of characters that looks like GTM-ABCD123. It's what identifies your GTM container to every tool that needs to connect to it โ Segment, Shopify, WordPress plugins, third-party analytics platforms, developer scripts, and more.
The good news: it's genuinely easy to find. There are four places you can grab it from, depending on where you're working. This guide covers all four, plus what to do if you can't find it or aren't sure whether GTM is installed on your site yet.
What we'll cover
A container ID is a unique identifier assigned to each GTM container when you create it. Every container has its own ID, and it always follows the same format: GTM- followed by 7 alphanumeric characters, like GTM-ABCD123 or GTM-P8QW9XZ.
You'll need this ID whenever you want to:
Now let's find yours.
This is the quickest way. Takes about 5 seconds if you're already signed in.
You'll see your container ID displayed there in the format GTM-XXXXXXX. Click on it to copy, or just read it off the screen.
๐ก Quick tip: If you manage multiple containers, the ID at the top-right always corresponds to the container you currently have open. Switching containers from the dropdown will change the visible ID.
This method also shows you the full container installation code, which is handy if you're setting up GTM on a new site.
<head> and one for the <body>GTM-)This is the same code you'd give to a developer to install GTM manually on a website.
Useful when you manage several containers and want to compare IDs without opening each one individually.
Handy for agencies or in-house teams juggling multiple GTM setups across different brands or environments.
Not sure if GTM is set up properly on your site?
Finding the container ID is the easy part. Making sure GTM is installed correctly, firing the right tags, and passing data cleanly to Google Ads and GA4 is where most small businesses get stuck. We set this up for small businesses every week.
Get help with your GTM setup โIf GTM is already installed on a website โ yours or someone else's โ you can find the container ID by inspecting the page source. Useful when you've inherited a site and don't know which GTM container is running.
Ctrl+U on Windows / Cmd+Option+U on Mac)Ctrl+F (Windows) or Cmd+F (Mac) to open the search barGTM-You'll find the container ID inside the GTM script tag, usually near the top of the <head> section. It'll look something like:
https://www.googletagmanager.com/gtm.js?id=GTM-ABCD123
The part after id= is your container ID.
โ ๏ธ Watch out: A page can have multiple GTM containers installed (for example, one from your CMS plugin and another manually added). If you find more than one GTM- reference in the source, that's why. Use the Tag Assistant Chrome extension to see all active containers cleanly.
Yes. IDs starting with GT- are for the newer Google Tag (a simplified alternative to GTM introduced in 2022). IDs starting with GTM- are for traditional Google Tag Manager containers. Both are valid, they just power different setups.
Older containers created before 2020 sometimes have shorter IDs. They still work. Newer containers use the standard 7-character format.
No. Container IDs are permanent and assigned by Google when the container is created. If you need a different ID, you'd need to create a new container and reinstall it on your site (which means re-adding all your tags, triggers, and variables โ not fun).
Even inside a workspace, the container ID is visible in the top-right corner (Method 1) and in the Admin section (Method 2). You don't need container-level admin permissions to see the ID โ just container access.
Install the Tag Assistant Companion Chrome extension from the Chrome Web Store. Visit your website with the extension enabled โ it will tell you exactly which GTM containers are firing (if any) and show their IDs.
Finding your GTM container ID takes about 5 seconds once you know where to look. The tricky part isn't the ID itself โ it's what comes after: making sure GTM is actually installed correctly, that your tags are firing on the right events, and that data is flowing cleanly into Google Ads and GA4.
If you're at the "just installed GTM, now what?" stage, our Google Ads Conversion Tracking with GTM & GA4 guide is the natural next step. It walks through building your first conversion tag from scratch.
And if GTM feels overwhelming โ you're not alone. Most small business owners never touch it because it looks technical. It genuinely isn't, once someone shows you the ropes.
GTM is one of those tools that looks scary but pays off massively once it's set up right. We install and configure GTM for small businesses week in, week out โ so your tracking is clean, your data is trustworthy, and your Google Ads campaigns bid on real conversions.
Published by googlemarketing.io โ helping small businesses get more out of Google Ads, Analytics, Tag Manager, and SEO.
Copyright 2026 Altic LLC All rights reserved.