How to Use Google Tag Manager?

10 minutes read

Google Tag Manager (GTM) is a powerful tool that allows you to manage and deploy various tracking tags on your website without directly editing the code. Here's a step-by-step guide on how to use Google Tag Manager:

  1. Sign in to your Google Tag Manager account using your Google login credentials.
  2. Create a new container in GTM. A container is a placeholder for all your tags, triggers, and variables.
  3. Install the GTM container code snippet on your website. Copy the provided code and add it to every page of your website, usually right after the opening tag.
  4. Set up a tag. A tag represents a snippet of tracking code from a third-party tool, such as Google Analytics or Facebook Pixel. Choose the type of tag you want to set up, enter the necessary details, and save the tag.
  5. Configure a trigger. A trigger determines when and where a tag is fired on your website. Choose the criteria and conditions necessary for the tag to be triggered, such as page URL, click events, or form submissions.
  6. Create a variable (optional). Variables allow you to retrieve and store dynamic values, such as page URLs, user IDs, or product prices. You can create custom variables or use the built-in ones provided by GTM.
  7. Preview and debug your setup. Use the GTM preview mode to check if your tags are firing correctly and if the expected data is being collected. This step helps you ensure that your implementation is error-free before publishing changes.
  8. Publish your changes. Once you're satisfied with your setup, click on the "Submit" button in GTM to publish your container. Changes may take a few minutes to propagate across your website.
  9. Test and verify the tags on your live website. Make sure the tags are firing as intended and that the data is being accurately collected in your analytics or marketing platform.
  10. Manage and update tags. Over time, you might need to add, modify, or remove tags, triggers, or variables. GTM allows you to easily make these changes within the container, sparing you the need for manual code alterations.


By utilizing Google Tag Manager, you can efficiently manage all your tracking tags in one place, reduce dependencies on web developers, and have better control over your website's analytics and marketing data.

Best Google Analytics Books In 2023

1
Google Analytics Demystified (4th Edition)

Rating is 5 out of 5

Google Analytics Demystified (4th Edition)

2
Learning Google Analytics: Creating Business Impact and Driving Insights

Rating is 4.9 out of 5

Learning Google Analytics: Creating Business Impact and Driving Insights

3
Google Analytics: Understanding Visitor Behavior

Rating is 4.8 out of 5

Google Analytics: Understanding Visitor Behavior

4
Google Analytics Breakthrough: From Zero to Business Impact

Rating is 4.7 out of 5

Google Analytics Breakthrough: From Zero to Business Impact

5
Google Analytics Alternatives: A Guide to Navigating the World of Options Beyond Google

Rating is 4.6 out of 5

Google Analytics Alternatives: A Guide to Navigating the World of Options Beyond Google

6
Learning Google AdWords and Google Analytics

Rating is 4.5 out of 5

Learning Google AdWords and Google Analytics

7
Data Engineering with Google Cloud Platform: A practical guide to operationalizing scalable data analytics systems on GCP

Rating is 4.4 out of 5

Data Engineering with Google Cloud Platform: A practical guide to operationalizing scalable data analytics systems on GCP

8
Practical Google Analytics and Google Tag Manager for Developers

Rating is 4.3 out of 5

Practical Google Analytics and Google Tag Manager for Developers

9
Advanced Web Metrics with Google Analytics

Rating is 4.2 out of 5

Advanced Web Metrics with Google Analytics


How to set up event tracking in Google Tag Manager?

To set up event tracking in Google Tag Manager, follow these steps:

  1. Sign in to your Google Tag Manager account and select the container where you want to set up event tracking.
  2. Click on "Tags" in the left-hand menu, and then click on the "New" button to create a new tag.
  3. Name your tag and click on the tag configuration section. In the "Choose Tag Type" section, select the type of event you want to track, such as a button click or form submission.
  4. Configure the event tracking details based on the type you selected. For example, if you chose button click, specify the trigger type as "Click - All Elements" and set the "Fire On" condition according to your requirements.
  5. Save the configuration, and then click on the "Triggering" section. Select the appropriate trigger for your event based on the conditions you want to track. For example, you can choose a form submission trigger if you want to track when a form is submitted.
  6. Save the trigger, and then click on the "Submit" button to save your new tag.
  7. Back on the main Google Tag Manager screen, click on "Submit" in the top right corner to publish your changes.
  8. After publishing, your new tag will be active, and event tracking data will start to be collected based on the triggers you have set up.


Note: Make sure to also update your website's code to include the Google Tag Manager container snippet for the changes to take effect.


How to create a Google Tag Manager account?

To create a Google Tag Manager account, follow these steps:

  1. Go to the Google Tag Manager website: https://tagmanager.google.com/.
  2. Click on the "Create Account" button.
  3. Sign in using your Google account credentials. If you don't have a Google account, you'll need to create one first.
  4. You will be prompted to provide an account name for your Google Tag Manager account. Enter a descriptive name for your account.
  5. Choose your Country and Time Zone from the dropdown menus.
  6. Read and accept the Terms of Service agreement.
  7. Click on the "Create" button.
  8. Your Google Tag Manager account will be created, and you'll be redirected to the container setup page.


That's it! You have now successfully created a Google Tag Manager account. From here, you can create containers and add tags to manage your website analytics, advertising, and other tracking tools.


How to add a new container in Google Tag Manager?

To add a new container in Google Tag Manager, follow these steps:

  1. Go to the Google Tag Manager website (tagmanager.google.com) and log in with your Google account.
  2. Click on the "Create Account" button.
  3. Fill in the account name, container name, and select the relevant target platform (e.g., Web, iOS, Android).
  4. Choose the container type as "Web" if you want to add tags to a website.
  5. Enter the container name and the website URL associated with it.
  6. Read and accept the Terms of Service.
  7. Click on the "Create" button.
  8. Google Tag Manager will provide you with a container snippet. Copy this code snippet and paste it into the HTML of your website, just above the closing tag.


Once you have completed these steps, your new container is added to Google Tag Manager. You can now start adding tags, triggers, and variables to track and monitor various activities on your website.

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

Related Posts:

To track website tags with Google Tag Manager, follow these steps:Set up a Google Tag Manager account: Start by signing in to your Google account and access the Google Tag Manager website. Create a new account by providing the necessary details and setting up ...
To check your Google Tag Manager tags, you can follow these steps:Go to the Google Tag Manager website and log in with your Google account credentials. Once logged in, you'll be directed to the Google Tag Manager dashboard. Select the container you want to...
To set up Google Tag Manager for Magento 2, you need to follow these steps:Create a Google Tag Manager account: Go to the Google Tag Manager website and sign in with your Google account or create a new one if you don't have one. Set up a new container: Onc...