Opens in a new tab

What Is Google Tag Manager and How Do You Set It Up?

If you’ve ever wanted to add a tracking code to your website but dreaded having to call your developer every single time, Google Tag Manager was built for you. It’s one of those tools that sounds more complicated than it is. Once you understand what it does and how it works, you’ll wonder how you…

If you’ve ever wanted to add a tracking code to your website but dreaded having to call your developer every single time, Google Tag Manager was built for you.

It’s one of those tools that sounds more complicated than it is. Once you understand what it does and how it works, you’ll wonder how you managed without it. In this guide, we’ll explain what Google Tag Manager (GTM) is, why it’s worth using, and how to get it set up on your website.

Quick answer: Google Tag Manager is a free tool from Google that lets you add, edit, and manage tracking codes on your website from one central dashboard, without touching your site’s code each time.

What Is Google Tag Manager?

Google Tag Manager is a free tag management system that acts as a middleman between your website and the various marketing and analytics tools you use.

Think of it this way: every time you want to track something on your site, whether that’s a form submission, a button click, or a page view, you’d normally need a snippet of code (called a “tag”) added directly to your website. Without GTM, that means asking a developer to do it every time. With GTM, you add the tags yourself through a simple web interface, and your website only ever needs one piece of code installed.

In short: one GTM snippet on your site, and you control everything else from the dashboard.

What is a tag?

A tag is a small piece of code that sends information to a third-party tool. Common examples include:

  • Google Analytics 4 (GA4) for tracking website traffic and user behaviour
  • Google Ads for measuring conversions from your paid campaigns
  • Meta Pixel for retargeting visitors with Facebook and Instagram ads
  • LinkedIn Insight Tag for B2B campaign tracking

Tags, triggers, and variables

GTM is built around three core concepts:

  • Tags are the tracking codes themselves (e.g. your GA4 tag)
  • Triggers tell GTM when to fire a tag (e.g. when someone submits a form)
  • Variables store reusable values that tags and triggers can reference (e.g. a page URL or click text)

Once you understand these three things, GTM becomes a lot less intimidating.

Why Use Google Tag Manager?

Beyond the obvious convenience, GTM solves a real problem for growing businesses: the gap between what your marketing team needs to track and how quickly your development team can implement it.

Here’s why it’s worth using:

  • No developer needed (most of the time). Once GTM is installed on your site, your marketing team can add and update tags independently. That means faster campaign launches and fewer bottlenecks.
  • It’s free. GTM is a free tool from Google with no usage limits for standard web tracking.
  • Everything is in one place. Instead of hunting through your website’s code to find which tracking scripts are running, you can see all your tags in one dashboard.
  • Built-in testing. GTM’s Preview Mode lets you test tags before they go live, so you can catch mistakes before they affect your data.
  • Version control. Every time you publish changes, GTM saves a version. If something breaks, you can roll back to a previous version instantly.

The real benefit isn’t just saving time. It’s giving your marketing team the autonomy to move quickly without creating a queue of developer requests every time a campaign needs a new tracking tag.

How to Set Up Google Tag Manager

Setting up GTM takes about 15 minutes. Here’s how to do it.

Step 1: Create your GTM account

Go to tagmanager.google.com and sign in with your Google account (the same one you use for Google Analytics or Google Ads).

Click Create Account and fill in:

  • Account Name: your business name
  • Country: United Kingdom
  • Container Name: your website domain (e.g. yoursite.co.uk)
  • Target Platform: Web

Click Create and accept the terms of service.

Step 2: Install the GTM snippet on your website

After creating your container, GTM will give you two code snippets. The first goes in the <head> of every page; the second goes immediately after the opening <body> tag.

If you’re on WordPress, the easiest option is to use a plugin such as WP Code or Google Tag Manager for WordPress to paste the container ID without editing your theme files directly. If you’re on a custom-built site, pass the snippets to your developer to install.

Note: The first snippet (in the <head>) is essential. The second is a fallback for browsers with JavaScript disabled. If you can only add one, prioritise the head snippet.

Step 3: Verify the installation

Once the code is on your site, go back to GTM and click Preview in the top right corner. Enter your website URL and GTM will open a debug window showing whether the container is firing correctly. If you see “Tag Assistant Connected,” you’re good to go.

Step 4: Add your first tag (GA4)

Most businesses start by connecting Google Analytics 4 through GTM. Here’s how:

  1. In your GTM workspace, go to Tags and click New
  2. Click Tag Configuration and choose Google Tag
  3. Enter your GA4 Measurement ID (found in GA4 under Admin > Data Streams)
  4. Under Triggering, select All Pages
  5. Name the tag (e.g. “Google Tag – GA4”) and click Save

Step 5: Test and publish

Use Preview Mode again to confirm your GA4 tag is firing on every page. Once you’re happy, click Submit in the top right corner, add a version name (e.g. “Initial GA4 setup”), and click Publish.

Your changes are now live.

Do You Still Need a Developer?

For the initial installation, yes. Someone needs to add those two GTM code snippets to your website’s HTML. If you’re on WordPress, a plugin makes this straightforward enough to handle yourself. For custom-built sites, it’s a five-minute job for a developer.

After that? Most day-to-day tag management can be handled without any development input at all. Adding a new Google Ads conversion tag, updating your Meta Pixel, or setting up event tracking for a button click are all things you can do directly in GTM.

That said, more advanced configurations, such as tracking complex e-commerce events or setting up custom data layer pushes, may still require developer involvement. But for the majority of small to medium businesses, GTM puts meaningful control back in the hands of the marketing team.

If you’d like help with web analytics or tracking setup, our team can get everything configured correctly from the start.

Getting the Most Out of GTM

Once GTM is set up and your core tags are running, here are a few things worth doing next:

  • Set up conversion tracking. Connect your Google Ads account and create conversion tags so you can see which campaigns are actually driving enquiries and sales, not just clicks.
  • Track key events. Use GTM triggers to fire tags when users click your phone number, submit a contact form, or scroll to a certain point on the page. This data is far more useful than page views alone.
  • Keep your container tidy. Name your tags clearly (e.g. “GA4 – Form Submission”) and use folders to group them by tool or campaign. Future you will be grateful.
  • Use version notes. Every time you publish a change, add a short description of what you changed. It makes troubleshooting much easier down the line.

The bottom line: GTM is one of the most useful free tools available to any business running digital marketing. It removes the friction between wanting to track something and actually being able to track it, and that makes your marketing data more complete, more accurate, and more actionable.

If you need help setting up Google Tag Manager or want someone to audit what’s already running on your site, get in touch with our team and we’ll take a look.

Recent Articles

Proud to be an employee-owned business

For Team DBS Digital, being an employee-owned business signifies our unwavering commitment and care to the growth and development of our staff as well as our clients. We are dedicated and fully invested to providing valuable digital solutions and exceptional service to our clients because we understand that our clients’ successes are intertwined with our own.

Learn More

We're award winning