How to Set Up and Find Your Google Tag Manager ID
Google Tag Manager (GTM) is a powerful tool that allows you to manage and deploy various marketing tags (like Google Analytics, Facebook Pixel, and more) on your website without modifying the code manually. Setting it up and finding your GTM ID is straightforward. Here’s a step-by-step guide on how to set up Google Tag Manager and locate your GTM ID.
Step 1: Create a Google Tag Manager Account
If you don’t already have a Google Tag Manager account, you’ll need to create one.
- Go to the Google Tag Manager website:
- Visit Google Tag Manager and sign in with your Google account.
- Create an account:
- Once logged in, click on Create Account.
- In the Account Name field, enter the name of your business or website.
- Choose the country where your business operates.
- Set up a container:
- In the Container Name field, enter the name of your website (e.g., example.com).
- Select where you want to use the container (Web, iOS, Android, AMP). For a standard website, choose Web.
- Click on Create.
- Agree to the terms:
- Read and agree to the Google Tag Manager terms of service.
Step 2: Install Google Tag Manager on Your Website
Once you’ve created your Google Tag Manager account and container, you’ll be provided with two pieces of code that need to be added to your website.
- Copy the GTM container code:
- You’ll see two sets of code snippets. The first snippet should be placed in thesection, and the second snippet should go immediately after the opening
<head>
tag.<body>
- You’ll see two sets of code snippets. The first snippet should be placed in the
- Add the code to your website:
- If you’re using a platform like WordPress, you can either add the code manually by editing your theme’s files or use a plugin (like Insert Headers and Footers plugin) to place the code in the correct sections.
- For other CMS platforms, such as Shopify, Squarespace, or custom-built websites, follow the respective instructions for inserting the GTM code in the appropriate sections.
- Verify the installation:
- After placing the code, you can use the Tag Assistant Chrome extension or preview mode in Google Tag Manager to ensure the installation was successful.
Step 3: Find Your Google Tag Manager ID
Your Google Tag Manager ID is essential for integrating it with other tools, like Google Analytics or third-party platforms. It’s easy to find:
- Log in to Google Tag Manager:
- Visit Google Tag Manager and log in if you’re not already logged in.
- Select your container:
- After logging in, you’ll see your account and containers. Select the container for which you want to find the ID.
- Locate your GTM ID:
- In the top-right corner of the screen, you’ll see your GTM ID, which starts with “GTM-“. It looks something like this:.
GTM-XXXXXX
- In the top-right corner of the screen, you’ll see your GTM ID, which starts with “GTM-“. It looks something like this:
Alternatively:
- You can also find the GTM ID by clicking on the Admin tab in the container and looking for the container ID at the top.
Step 4: Use the GTM ID
Once you’ve found your GTM ID, you can use it in several ways:
- Add it to other platforms: Many third-party platforms, such as WordPress plugins, Facebook, or Shopify, will ask for your GTM ID to enable tracking via Google Tag Manager.
- Install GTM manually: If you haven’t installed GTM yet, use the ID to implement the provided code on your website as explained in Step 2.
Conclusion
Setting up Google Tag Manager is an essential step for streamlining your website’s marketing tags and tracking capabilities. By following these steps, you can easily set up GTM, add the necessary code to your website, and locate your Google Tag Manager ID to begin managing your tags more effectively.