Google tag manager: What is it and How to use it?

By Rebecca
11 Min Read

In digital marketing, it is essential to be able to measure the results of our actions through metrics such as traffic, events, or conversions.

At a technical level, to measure what is happening on our website, we have to install a series of tags or code snippets. Previously, this process could be very complex and required specialized technical help. But thanks to Google Tag Manager, managing tags on your website is easier than ever.

google tag manager” src=”” alt=”google tag manager” width=”1440″ height=”880″ /> google tag manager

What is Google Tag Manager?

Google Tag Manager is a free tool from Google that allows you to add tracking codes, web analytics, and measurement to any website or application. It is designed to be easy to use and does not require specialized programming skills, so marketers can easily link the measurement solutions they need to their sites.

Advantages of using Google Tag Manager

Main functions of Google Tag Manager

Google Tag Manager is packed with features to make tag management easier. Here are some especially helpful:

  • Its tagging technology allows you to perfectly control how your site’s tags are defined and activated. It supports Accelerated Mobile Pages and mobile apps and includes features such as asynchronous tag loading and tag pausing, exclusion, or sequencing.
  • It includes multiple solutions to improve usability for marketers and not just IT teams. It has a simple web interface, a preview mode, instant search and autocomplete, version history, workspaces, and much more.
  • It allows you to control the most appropriate access level and permissions for each user so that your marketing and web development teams can collaborate more securely and efficiently. It supports multiple customer and user accounts at the same time and grants permissions at the user level.
  • It includes different triggers to control when and how tags are fired to collect the necessary data, for example, automatic event triggers, clicks, custom events, form submissions, page views, and history changes.
  • It has built-in marketing and measurement tag templates, both from Google and third parties, that makes it easy to select and implement the most used tags.
  • It integrates with other Google solutions, such as Google Ads or Campaign Manager, to facilitate the management of advertising campaigns.
  • It allows you to manage tags in an automated way and create custom solutions through the Tag Manager API.

Read more: Google Ads: How to create the best campaign step by step

How to configure Google Tag Manager step by step

One of the most interesting functions of Google Tag Manager is that it allows us to manage tags in a pre-production environment so that we can do tests before launching the pixels or tags. We will first see how to do the basic configuration of Google Tag Manager and then we will delve into the pre-production environment.

The basic configuration of Google Tag Manager

google tag manager” src=”” alt=”google tag manager” width=”1440″ height=”880″ /> google tag manager

Pre-production environments in Google Tag Manager

Google Tag Manager environments are used to preview the changes we have made to a container in a test environment before publishing them on our site.

Many companies have an established release process with multiple environments, such as development, test, and production. Each new version of the website is tested in an environment to verify that everything works well before releasing the final version online. Well, we can also use the function of the environment in Google Tag Manager to test that all the tags in our container work correctly before implementing them. To do this, follow the steps below.

1) Set up the sandbox in Google Tag Manager

To get started, go to the admin view and click Environments. You will see that there are already two default environments: Live (the one used by default for your production website) and Latest (the latest version of your container).

To create a new environment, click New, select a name and URL, and click Create environment. Then select Post Now. The new environment should appear in the Custom Environments list.

Next, go to the environment panel and click on the Actions link. Copy the snippet, paste it into your testing website, and save and publish the changes.

2) Test your tags in the sandbox

Once you’ve created your custom environment, you can create a different version of your container with the tags you want to test. Then go to the Versions panel and follow these steps:

  • Click on the version you want to publish in the sandbox.
  • Choose Post to.
  • Select the sandbox.
  • Click Publish.

If you update the versions panel, you will see that the chosen version has been applied both in the “Latest” and in the test environment. Next, go to your test site and check that the tags you have included in the container are working correctly. Also, check that these tags have not been included on the production or “Live” website.

If something goes wrong, don’t worry! As they are not yet published on your production site, you will be able to make the necessary changes to your labels before finally launching them online.

3) Publish your tags in the production environment

Once you have verified that the new tags work correctly in the test environment, you are ready to release them to production.

To do this, go back into the Versions panel, click on the version you just tested, click Publish to and choose the production environment. Now the new version should be available in all environments. Check that it works correctly in production and voila! Remember that if something goes wrong, you can go back to a previous version at any time.


for website maintenance service contact us.

By Rebecca
Rebecca is an Independent content writer for breldigital, She writes content on any given topic. She loves to write a case study article or reviews on a brand, Be it any topic, she nails it