What is Google Tag Manager?

What is Google Tag Manager?

If you take online marketing and search engine optimisation seriously, you have probably heard of Google Tag Manager, often shortened to GTM. This free tool from Google lets you manage tracking codes and marketing tags in one place, without having to work directly in your website’s source code for every change.

In this article, we explain what Google Tag Manager is, how it works, what benefits it offers and how to use it properly as part of your digital marketing strategy.

What is Google Tag Manager?

Google Tag Manager is a tag management system that lets you configure and publish tracking codes and other code snippets on a website or app.

A tag is a piece of code that collects data or sends it to an external platform. Examples include:

  • Google Analytics 4
  • Google Ads conversion tracking
  • The Meta Pixel
  • Heatmaps and session recordings
  • A/B testing tools
  • Remarketing tags
  • Tracking of form submissions and clicks

Instead of adding every tracking code to your website separately, you place the Google Tag Manager container once. After that, you manage most tags through GTM’s online interface.

You will find more information in the official Google Tag Manager overview.

How does Google Tag Manager work?

Google Tag Manager works mainly with three components: tags, triggers and variables. By combining these components, you decide what data is measured and when a measurement takes place.

Tags

Tags are the tracking codes or code snippets that are run. A tag can, for example, send a page view to Google Analytics or pass a conversion on to Google Ads.

Other examples are recording a click on a phone number, loading a remarketing pixel or measuring a completed order.

Triggers

A trigger determines when a tag fires. For example, you can have a tag run:

  • When any page loads
  • When a specific page is visited
  • After a form is submitted
  • When someone clicks a button or link
  • When a visitor reaches a certain scroll depth
  • After a video has been watched

So a trigger listens for a specific event and then fires the linked tag.

Variables

Variables hold additional information that tags and triggers can use. Think of the URL of the current page, the text of a clicked button, a product price or a transaction ID.

Say you only want to measure clicks on a button with the text ‘Request a quote’. Then the button text can be used as a variable to determine when the tag should fire.

Google explains how these components work in more detail on the page Components of Google Tag Manager.

Why is Google Tag Manager important?

1. Manage tags in one place

With GTM, you manage different tracking codes from one central environment. That means you don’t have to change your website’s files or templates again for every small adjustment.

This keeps management clearer and reduces the chance of loose scripts ending up in different places on the website.

2. More flexibility for marketers

Marketers can prepare new measurements and adjust existing tags without depending on a developer for every change.

Technical support remains important for more complex implementations, but simple tags and events can often be managed directly in GTM.

3. Better collaboration

Developers can take care of the basic implementation and the data layer, while marketers manage the tracking configuration. With clear agreements and naming conventions, the setup stays manageable even on larger websites.

Google Tag Manager also has versions and workspaces, so changes can be checked more carefully and rolled back.

4. More accurate measurements

With GTM, you can measure more than just page views. You can record specific interactions and so get a better understanding of what visitors do on your website.

Examples include:

  • Clicks on call-to-action buttons
  • Completed contact and quote forms
  • Clicks on phone numbers and email addresses
  • PDF downloads
  • Outbound clicks to external websites
  • Videos played
  • Scroll depths reached
  • Products added to the basket and completed orders

5. Free to use

The standard version of Google Tag Manager is free. You can use the tool for Google Analytics, Google Ads and many tags from other platforms.

You will find more information about what it can do on the official Google Tag Manager page.

Examples of what you can measure with GTM

Google Tag Manager can be used for a wide range of measurements. Which events matter depends on the goal of your website.

For a business website

  • Clicks on the ‘Request a quote’ button
  • Submitted contact forms
  • Clicks on a phone number
  • Clicks on an email address
  • Downloads of brochures or price lists

For an online store

  • Products viewed
  • Items added to the basket
  • Checkouts started
  • Completed purchases
  • Revenue and product data

For content websites

  • Scroll depth reached
  • Clicks on internal links
  • Video views
  • Newsletter sign-ups
  • Whitepaper downloads

By setting up these actions as key events in GA4 and as conversions in Google Ads, you gain better insight into the performance of your website and campaigns.

Google Tag Manager and SEO

Google Tag Manager does not directly improve your rankings in Google. It is not an SEO plugin, and running tags does not in itself lead to higher rankings.

What GTM does do is help you collect data that lets you make better decisions. For example, you can find out:

  • Which pages generate a lot of interaction
  • Where visitors drop off
  • Which calls to action perform best
  • Which traffic sources generate conversions
  • Which forms are often started but not completed
  • Which content visitors actually look at

With this information, you can make targeted improvements to your content, navigation, conversion paths and landing pages.

Keep an eye on your website’s performance

Although GTM makes managing tags easier, too many tags, or badly configured ones, can slow your website down. Every external tag can add extra scripts and network requests.

So only add tags that you really need, and check regularly which tags are still in use.

The role of the data layer

Advanced measurements often use a data layer. This is a structured layer of data that makes information available to Google Tag Manager.

An online store can, for example, put data in it about:

  • Product names
  • Product prices
  • Categories
  • Transaction IDs
  • Order values
  • User actions

GTM can then read this information and pass it on to, for example, Google Analytics or Google Ads.

You will find more technical information in the official documentation on the data layer.

Google Tag Manager and privacy

Using Google Tag Manager does not automatically mean your website complies with privacy legislation. GTM is only the system used to manage tags. You remain responsible for the way data is collected and shared.

Depending on the tags you use and the privacy rules that apply, you may need the visitor’s consent before marketing or analytics tags fire.

So pay attention to points such as:

  • A correct cookie banner and consent settings
  • Blocking tags until consent has been given
  • A clear privacy policy and cookie policy
  • Removing tags that are no longer used
  • Preventing sensitive personal data from being sent to analytics tools

Google Tag Manager can be combined with Google Consent Mode and various consent management platforms, but this setup needs to be tested carefully.

Common mistakes with Google Tag Manager

Adding too many tags

Because tags are easy to add, you sometimes end up with a container full of dozens of outdated or duplicate tags. This makes management confusing and can affect the website’s performance.

Not using clear names

Use recognisable names for tags, triggers and variables. A name like ‘Tag 1’ says very little, whereas ‘GA4 – Contact form submitted’ makes it immediately clear what the tag is used for.

Not testing changes

Never publish a new tag without testing it first. With preview and debug mode, you can check which tags fire and which don’t.

Google describes this process in its guide to previewing and debugging containers.

Not keeping documentation

Record which tags have been added, what they are used for and who is responsible for the linked platform. This prevents confusion when several people work in the same container.

Setting up duplicate tracking

A common mistake is loading the same tracking code both directly on the website and through GTM. As a result, page views and conversions can be counted twice.

Publishing every change straight away

Use preview mode and check important measurements before you publish a container version. On larger websites, you can also use a separate test environment.

How do you get started with Google Tag Manager?

  1. Create an account via Google Tag Manager.
  2. Create a container and choose ‘Web’ as the target platform.
  3. Place the container code on your website following Google’s instructions.
  4. Create your first tag, for example for Google Analytics 4.
  5. Link the right trigger to the tag.
  6. Test the implementation with preview mode and Google Tag Assistant.
  7. Check that the data arrives correctly in the linked platform.
  8. Publish the container with a clear version name and description.

After the basic implementation, you can add further events and conversions. Ideally, start with a clear measurement plan that sets out which actions matter for your business.

Conclusion

Google Tag Manager is a handy tool for managing tracking codes and marketing tags in one place. It gives marketers more flexibility and helps measure important interactions on a website more accurately.

With a good GTM setup, you can track form submissions, clicks on phone numbers and calls to action, downloads and purchases, among other things. This data helps you make targeted improvements to campaigns, content and conversion paths.

Just adding tags is not enough. Clear naming, thorough testing, attention to privacy and regular maintenance are all needed to collect reliable data.

If you want to measure properly what your website and campaigns deliver, Google Tag Manager is a valuable tool.

Next step

Want a professional website that delivers results?

Tell us about your plans and receive free, no-obligation advice and a quote that fits.

Want to know more? Read all about ranking higher in Google.

Request a quote