Opens in a new tab

Automation

What is Google Tag Manager, and how to set it up on your website

What Google Tag Manager does, when the Google tag alone is enough, who should own the account, and how to install it, add the Google tag, test and publish.

CheckedNovember 2, 2026
Reading time
Part ofAutomation
Listen to this guide
0:00 /6:42

Short answer: Google Tag Manager is a tag management system. It lets you add and manage tags on your website, such as the Google tag for Analytics and Google Ads, without changing your site’s code each time. You paste two snippets of code on every page once. After that you create tags and triggers in Tag Manager, test them in preview mode and publish them.

Tags, triggers and the container

A tag is a piece of code that sends information to a service, such as Google Analytics. In Tag Manager you set up tags, triggers that make a tag fire when something happens on your site, and variables that make the setup simpler. All of them together, for one website or app, form a container.

A container can replace the hand-coded tags on your site, including Google Ads, Google Analytics, Floodlight and other companies’ tags. Google’s best practice is to move them all at once, but it isn’t required: tags outside Tag Manager keep firing next to the ones inside.

From Tag Manager Help, “Introduction to Tag Manager”, read November 2, 2026.

Tag Manager or the Google tag on its own

You don’t need Tag Manager to measure your site. The Google tag alone sends data to Google Analytics and Google Ads, and it measures page views, clicks and scrolls on its own. Google says that option suits marketers without a web development team, and if the default metrics are all you need, you set it up once.

Tag Manager is for people who manage Google tags and tags from other companies, such as a pixel, and want to add and change them without editing code. Google also calls it a good option for agencies.

Google tag in the code (gtag.js) Google Tag Manager
Changes You write code to deploy tags You add and change tags without editing code
What it sends Data to Google products only Google tags, other companies’ tags and custom tags
Where you manage it In your site’s code At tagmanager.google.com
Teamwork Versions depend on how you manage your code Workspaces and version control

To set up the Google tag on its own, our guide on how to set up Google Analytics 4 covers it.

From Tag Manager Help, “Google Tag Manager vs. gtag.js”.

Before you install it

  • The account is yours. Google says the organization whose tags are managed should create the Tag Manager account. If an agency handles your tags, it gets added as a user of your account.
  • More than one administrator. With a single administrator, you can lose access to your tags if that person becomes unavailable. Google recommends adding at least one more.
  • One container per web domain. That is Google’s best practice. If your site and its tags span several domains, Google suggests one container for all of them.
  • A list of the tags you need. If your site already has tags, list them and plan how to move each one.

From Tag Manager Help, “Considerations before you install”.

How to set up Google Tag Manager

  1. Go to tagmanager.google.com and sign in with your Google Account.
  2. Click the Accounts tab, then Create Account.
  3. Enter an account name and choose your country.
  4. Name the container after your website’s main address, such as www.example.com, and choose Web.
  5. Click Create and agree to the Terms of Service.
  6. In the Workspace tab, click your container ID, which starts with “GTM”, to see the two blocks of code.
  7. On every page, paste the first block as high in the <head> as possible and the second right after the opening <body> tag.

You don’t need a container for each page of your website. If your site runs on a builder or a CMS such as WordPress, Shopify or Wix, Google points to integrations that set up the Google tag without editing every page.

From Tag Manager Help, “1. Create an account and container” and “2. Install a web container”.

Add the Google tag inside Tag Manager

With the container on your site, you add tags from Tag Manager. For Google Analytics and Google Ads, the first one is the Google tag. In the Workspace tab, click Tags and then New. Rename the untitled tag, for example “Google tag”, and under Choose tag type select Google Tag.

Enter your Tag ID. Google Ads and Google Analytics create a Google tag for you, so the ID comes from there. Under Triggering, choose Initialization - All pages and click Save. Our guides on Google Ads conversion tracking and the Meta Pixel and Conversions API cover the tags that usually come next.

From Tag Manager Help, “3. Add the Google tag in Google Tag Manager”.

Test and publish

Your changes reach your site when you publish them. Before that, click Preview at the top right of the workspace, enter your site’s address and click Connect. Tag Assistant opens your site and shows which tags fired and in which order. That view only appears in your browser, and your visitors don’t see it.

When the tags behave as they should, click Submit. Choose Publish and Create Version, give the version a name and a description, and click Publish. If you only want to save the changes, choose Create Version instead.

From Tag Manager Help, “4. Verify and publish tags” and “Preview and debug containers”.

Before you publish

  • The Tag Manager account belongs to your business, with at least two administrators.
  • The two blocks of code are on every page: one in the <head>, one right after the opening <body>.
  • The Google tag fires on all pages, with your Tag ID.
  • No tag is both in the code and in Tag Manager, so nothing counts twice.
  • Preview shows the tags you expected, in the right order.
  • Every published version has a name that says what changed.

RememberCreate the account in your business’s name and add the container code to every page once. Then add the Google tag with the Initialization - All pages trigger, check it in preview and publish a named version.

If you want us to set up your measurement, our automation service starts with it.

Quick answers about Google Tag Manager

Is Google Tag Manager the same as Google Analytics?

No. Google Analytics measures your visits. Tag Manager is a way to put tags on your site, and one of them can be the Google tag, which sends data to Analytics and Google Ads. You can use the Google tag on its own, or deploy it through Tag Manager.

Where do I paste the Google Tag Manager code?

On every page of your site. Google asks you to paste the first block of code as high in the head tag as possible, and the second block right after the opening body tag. If your site runs on a builder such as WordPress, Shopify or Wix, Google points to integrations instead.

Do I need a developer to use Google Tag Manager?

Not always. Google says that if all your tags fire as pages load and each page has its own URL, a basic container is enough. Moving many existing tags, custom tags and setups that need a data layer may need a web developer.

Should my agency create my Google Tag Manager account?

No. Google says the organization whose tags are managed should create the account and add the agency’s Google account as a user. It also recommends at least two administrators, so you keep access if one person leaves.

How do I test my tags before publishing them?

Click Preview in your workspace, enter your site’s address and click Connect. Tag Assistant opens your site and shows which tags fired and in which order. Only you see it, not your visitors. When it looks right, click Submit and publish a new version.

Sources

All read on November 2, 2026, in Tag Manager Help. Getting started: Introduction to Tag Manager, Considerations before you install and Google Tag Manager vs. gtag.js. Setup: Create an account and container, Install a web container, Add the Google tag in Google Tag Manager and Verify and publish tags. Testing: Preview and debug containers.

Pedro Galindez

Pedro Galindez

Founder of Feedback Studios, a bilingual growth studio in Miami.

Listen0:00 /6:42

More guides

Checked November 2, 2026

How to set up Google Analytics 4 on your website, WordPress included

Create the account, the property and the web stream, add the tag to your builder, your HTML or WordPress, check it works and mark your leads as key events.

Checked November 2, 2026

Meta Pixel and Conversions API: how to set them up in 2026

How to set up the Meta Pixel and the Conversions API in Events Manager, which standard events to use, how to count each sale once, and how to check it.

Checked November 2, 2026

WhatsApp Business API pricing in 2026: what each message costs

What Meta charges per WhatsApp message from October 1, 2026, by category and country, when messages are free, three examples and how to start.

Checked November 2, 2026

Local citations and NAP: what they are and how to keep them consistent

What local citations and NAP are, what Google says about them, how to find and fix your listings, what to check on each one, and what we found on ours.

Checked November 2, 2026

Meta descriptions and SEO titles: what they are and how to write them

How Google builds title links and snippets, how to write the title and the meta description of each page, how long they can be, and why Google changes them.

Checked November 2, 2026

How to do keyword research for SEO with Keyword Planner and Search Console

Find the words your customers search: Search Console’s Queries tab, Keyword Planner ideas and volumes for your city and language, and one search per page.

Next step

Rather talk it through?

In a 20-minute call we look at your business and tell you what we would do first.