Find your GTM container ID

This guide shows you where to find your GTM container ID and what format GTM Kit expects.

What a container ID looks like

A Google Tag Manager container ID always follows the pattern GTM-XXXXXXX, where the suffix is between 4 and 7 alphanumeric characters. Examples: GTM-K8VHX, GTM-A1B2C3D4. GTM Kit validates this format on save and rejects anything that does not match.

Steps

1. Open Google Tag Manager

Go to tagmanager.google.com and sign in with the Google account that owns your container.

2. Pick your account and container

If you only have one account and one container, you will land directly on the container’s workspace. If you have several, the landing page is a list of accounts. Click the account, then the container you want to use on this site.

3. Copy the ID from the workspace header

The container ID is shown at the top right of the workspace, next to the Submit and Preview buttons. It is in the format GTM-XXXXXXX. Click it once to copy, or select and copy manually.

4. Paste into GTM Kit

In WordPress, go to GTM Kit, General. Paste the ID into the GTM Container ID field and save.

GTM Kit accepts ID input with or without the GTM- prefix and will auto-prefix and uppercase as you type. So pasting K8VHX becomes GTM-K8VHX automatically.

I do not have a container yet

  1. Go to tagmanager.google.com and click Create Account.
  2. Give the account a name (often your company name).
  3. Set the container name to your site URL.
  4. Set the Target platform to Web.
  5. Accept the Terms of Service.
  6. Copy the container ID shown on the install snippet popup.

You do not need to copy or install the install snippet from Google. GTM Kit handles that part for you.

Verify it worked

After saving, the container ID is shown in the General tab and a green status indicator confirms the format is valid. View any page on your public site, view the page source (Cmd or Ctrl + U), and search for your container ID. It should appear inside a <script> tag near the top of the document. If it does, GTM Kit is loading the container. See Verify GTM is firing on your site for the full check.

Common issues

“Invalid GTM container ID” error on save. The ID does not match the GTM-XXXXXXX pattern. Common mistakes: pasting a GT- (Google Tag) ID instead of a GTM- (Tag Manager) ID, or pasting a measurement ID like G-XXXXXXX (that is GA4, not GTM). GTM Kit only accepts GTM container IDs.

You see two container IDs in Google’s UI. That is normal. Tag Manager shows the container ID and the account ID. The container ID is the GTM- one.