---
title: "How to Install Google Tag Manager on Your Website"
description: "How to install Google Tag Manager: create a container, add the code to your site, set up a Google tag, test it in Preview mode and publish."
url: "https://it-deweloper.pl/en/blog/install-google-tag-manager"
date: "2026-10-17T23:42:02+00:00"
language: "en-GB"
---

[Skip to main content](#tm-main)

- [ Home](https://it-deweloper.pl/en "IT Deweloper web studio home page")
- [Contact](https://it-deweloper.pl/en/contact "Contact the IT Deweloper web studio")
    - [ +48 731 190 041](tel:+48731190041 "Phone")
    - [ office<!---->&#64;<!---->it-deweloper.pl](mailto:office<!---->&#64;<!---->it-deweloper.pl "E-mail")
    - [ Nowogródzka 4A, Białystok, Poland](https://maps.app.goo.gl/BNjvryytwRyv4omA7 "Address")
    - [ WhatsApp](https://wa.me/48731190041 "WhatsApp")
    - [ Telegram](https://t.me/+48731190041 "Telegram")
- [Solutions](https://it-deweloper.pl/en/web "IT Deweloper's web development solutions")
    - [How we workStages of work](https://it-deweloper.pl/en/web/process "Website development stages and timelines")
    - [SEOSearch engine optimization](https://it-deweloper.pl/en/web/seo "SEO promotion: optimization, links, positions in Google")
    - [GEOWebsite promotion in AI](https://it-deweloper.pl/en/web/geo "GEO optimization: website promotion in ChatGPT, Gemini and Perplexity answers")
    - [AIArtificial Intelligence on the website](https://it-deweloper.pl/en/web/ai)
    - [JoomlaWebsite Management System](https://it-deweloper.pl/en/web/joomla "Joomla website development")
    - [GoogleGoogle services setup](https://it-deweloper.pl/en/web/google "Google services setup for your website")
- [Cost](https://it-deweloper.pl/en/cost "Rates and cost of services")
    - [PricingIndicative website development prices](https://it-deweloper.pl/en/cost/pricing "Website development prices")
    - [CalculatorSelf-service online estimate](https://it-deweloper.pl/en/cost/calculator "Calculate your website cost online")
    - [BriefGet an accurate project quote](https://it-deweloper.pl/en/cost/brief "Fill out the website development brief")
- [Portfolio](https://it-deweloper.pl/en/portfolio "Portfolio and examples of our work")
- [About us](https://it-deweloper.pl/en/about "About the founder — Victor Parhimchik")
- [FAQ](https://it-deweloper.pl/en/faq "Frequently asked questions about website development")
- [Blog](https://it-deweloper.pl/en/blog "Articles on website development and promotion")
- [ Русский ](https://it-deweloper.pl/ru/blog/install-google-tag-manager)
- [ Polski ](https://it-deweloper.pl/pl/blog/install-google-tag-manager)
- [ Беларуская ](https://it-deweloper.pl/be/blog/install-google-tag-manager)
- [ English ](https://it-deweloper.pl/en/blog/install-google-tag-manager)

  <a class="uk-search-toggle uk-display-block" href="/" uk-search-icon=""></a>

- <a href="/"> ![](https://it-deweloper.pl/templates/yootheme/assets/images/language.svg)  English  </a>
    - [ Русский ](https://it-deweloper.pl/ru/blog/install-google-tag-manager)
    - [ Polski ](https://it-deweloper.pl/pl/blog/install-google-tag-manager)
    - [ Беларуская ](https://it-deweloper.pl/be/blog/install-google-tag-manager)
    - [ English ](https://it-deweloper.pl/en/blog/install-google-tag-manager)

 [ ![IT-Deweloper](https://it-deweloper.pl/images/Faviocon.svg)![IT-Deweloper](https://it-deweloper.pl/images/Logo-light.svg)](https://it-deweloper.pl/en) [ Menu

 ](#tm-dialog)

- [ Home](https://it-deweloper.pl/en "IT Deweloper web studio home page")
- [Contact](https://it-deweloper.pl/en/contact "Contact the IT Deweloper web studio")
    - [ +48 731 190 041](tel:+48731190041 "Phone")
    - [ office<!---->&#64;<!---->it-deweloper.pl](mailto:office<!---->&#64;<!---->it-deweloper.pl "E-mail")
    - [ Nowogródzka 4A, Białystok, Poland](https://maps.app.goo.gl/BNjvryytwRyv4omA7 "Address")
    - [ WhatsApp](https://wa.me/48731190041 "WhatsApp")
    - [ Telegram](https://t.me/+48731190041 "Telegram")
- [Solutions](https://it-deweloper.pl/en/web "IT Deweloper's web development solutions")
    - [How we workStages of work](https://it-deweloper.pl/en/web/process "Website development stages and timelines")
    - [SEOSearch engine optimization](https://it-deweloper.pl/en/web/seo "SEO promotion: optimization, links, positions in Google")
    - [GEOWebsite promotion in AI](https://it-deweloper.pl/en/web/geo "GEO optimization: website promotion in ChatGPT, Gemini and Perplexity answers")
    - [AIArtificial Intelligence on the website](https://it-deweloper.pl/en/web/ai)
    - [JoomlaWebsite Management System](https://it-deweloper.pl/en/web/joomla "Joomla website development")
    - [GoogleGoogle services setup](https://it-deweloper.pl/en/web/google "Google services setup for your website")
- [Cost](https://it-deweloper.pl/en/cost "Rates and cost of services")
    - [PricingIndicative website development prices](https://it-deweloper.pl/en/cost/pricing "Website development prices")
    - [CalculatorSelf-service online estimate](https://it-deweloper.pl/en/cost/calculator "Calculate your website cost online")
    - [BriefGet an accurate project quote](https://it-deweloper.pl/en/cost/brief "Fill out the website development brief")
- [Portfolio](https://it-deweloper.pl/en/portfolio "Portfolio and examples of our work")
- [About us](https://it-deweloper.pl/en/about "About the founder — Victor Parhimchik")
- [FAQ](https://it-deweloper.pl/en/faq "Frequently asked questions about website development")
- [Blog](https://it-deweloper.pl/en/blog "Articles on website development and promotion")

  [ IT Deweloper Blog ](https://it-deweloper.pl/index.php?option=com_content&view=category&id=29&lang=en-GB "IT Deweloper Blog")

#  How to Install Google Tag Manager on Your Website

Google Tag Manager is a “box” for all the tracking codes on your site: Google Analytics, Google Ads conversions, social media pixels. You install the container code once, and from then on you add and change tags in the interface — without editing the template.

Here’s the installation step by step: create an account and container, add the code, set up your first tag, test it in Preview mode and publish.

---

![A Tag Manager tag icon in a browser window, a step checklist and a question mark — a guide to installing Google Tag Manager](https://it-deweloper.pl/images/blog/install-google-tag-manager-cover-2x.webp)

## Step 1. Create an account and container

1. Open [tagmanager.google.com](https://tagmanager.google.com) and sign in with your company Google account.
2. On the Accounts tab, click Create Account.
3. Enter the account name — usually your company name — and country.
4. Enter a container name (your site address works well) and choose Web as the target platform.
5. Click Create and accept the terms of service.

One account per company, one container per website. If you have several sites, each usually gets its own container.

## Step 2. Add the container code to your site

Once the container is created, Tag Manager shows two code snippets and an ID in the format `GTM-XXXXXXX`.

- **The first snippet**, with a `<script>` tag, goes as high as possible in the `<head>` of every page.
- **The second snippet**, with a `<noscript>` tag, goes immediately after the opening `<body>` tag.

If your CMS has a field for the Tag Manager ID — in the template or extension settings — just paste `GTM-XXXXXXX` there, and both snippets will be added automatically. You can always reopen the code by clicking the container ID at the top of the workspace.

## Step 3. Add a Google tag for Analytics

1. In the workspace, open Tags and click New.
2. In the tag configuration, choose Google Tag and paste your Google Analytics 4 stream ID in the format `G-XXXXXXXXXX`. Where to find it — in the article [on installing Google Analytics 4](https://it-deweloper.pl/en/blog/install-google-analytics-4).
3. As the trigger, choose Initialization – All Pages.
4. Give the tag a clear name, such as “GA4 — Google tag”, and save.

If the Analytics code was previously added directly to your site template, remove it — otherwise visits will be counted twice.

## Step 4. Test in Preview mode

1. Click Preview at the top of the workspace.
2. Tag Assistant opens: enter your site address and connect. Your site opens in a new tab in debug mode.
3. Go back to the Tag Assistant tab: your Google tag should be listed among the tags that fired.
4. Browse a few pages and make sure the tag fires on each one.

Only you see Preview mode; visitors to your site notice nothing.

## Step 5. Publish the container

1. Click Submit in the top right corner.
2. Fill in the version name and description, such as “GA4 connected”. Six months later, descriptions like this make it easy to see what changed and when.
3. Click Publish.

Until the container is published, the tags don’t work on your site, even if everything fired in Preview.

**Cookie banner.** For visitors from the EU, analytics and advertising tags must respect consent. Tag Manager has consent mode and the Consent Initialization – All Pages trigger for this, which fires before everything else. How to make sure it all works — in the article [on checking Consent Mode v2](https://it-deweloper.pl/en/blog/check-consent-mode-v2).

## How to keep your container tidy

- Name tags, triggers and variables using one pattern: “service — what it does”.
- Test changes in Preview before every publish.
- Give contractors access through User Management in Admin, not your password. Publish rights only for those who really need them.
- Don’t paste code from unverified sources into Custom HTML tags: it runs on your site for every visitor.

Once your container is running, you might consider loading tags from your own domain — see the article [on Google tag gateway](https://it-deweloper.pl/en/blog/how-google-tag-gateway-works).

## Common mistakes

- The container is created but not published.
- Analytics is both in the template and in Tag Manager — double counting.
- Two different containers on the site, and nobody remembers why the second one is there.
- The Tag Manager account is registered to a contractor, and access is lost when the work ends.

## In short

1. Create an account and a web container on your company account.
2. Add the two snippets: in `<head>` and right after `<body>` — or paste the ID into your CMS field.
3. Add a Google tag with your GA4 ID and the Initialization – All Pages trigger.
4. Test in Preview.
5. Click Submit → Publish.

If your site template has collected codes from various services and it’s unclear which of them work, we can [set up Google Tag Manager](https://it-deweloper.pl/en/web/google/gtm): move your tags into a container and set up tracking for forms, clicks and calls.

17 October 2026 | [Victor Parhimchik](https://it-deweloper.pl/index.php?option=com_contact&view=contact&id=1&catid=4) | [IT Deweloper Blog](https://it-deweloper.pl/index.php?option=com_content&view=category&id=29)

 [ ![A database icon in a browser window, a step checklist and a question mark — a guide to first queries on GA4 data in BigQuery](https://it-deweloper.pl/images/blog/ga4-bigquery-first-query-cover.webp)

### How to Write Your First Query on GA4 Data in BigQuery

Once Google Analytics 4 is linked to BigQuery, raw events appear in your warehouse every day: every page view, click and enquiry with all its paramet…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=300:ga4-bigquery-first-query&catid=29&lang=en-GB)

 [ ![A gateway arch with an arrow in a browser window, a step checklist and a question mark — an explanation of how Google tag gateway works](https://it-deweloper.pl/images/blog/how-google-tag-gateway-works-cover.webp)

### How Google Tag Gateway Works and Whether to Turn It On

Google tag gateway is a feature that lets you load Google tags from your own domain instead of Google’s servers. It’s often described as a way to “by…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=299:how-google-tag-gateway-works&catid=29&lang=en-GB)

 [ ![A speed gauge with a needle in a browser window, a step checklist and a question mark — a guide to checking Core Web Vitals](https://it-deweloper.pl/images/blog/check-core-web-vitals-cover.webp)

### How to Check Your Core Web Vitals and Read the Numbers

Core Web Vitals are three metrics Google uses to judge how comfortable a page is to use: how quickly the main content appears, how quickly the page r…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=298:check-core-web-vitals&catid=29&lang=en-GB)

 [ ![An envelope in a browser window, a step checklist and a question mark — a guide to setting up SPF, DKIM and DMARC for Google Workspace](https://it-deweloper.pl/images/blog/google-workspace-spf-dkim-dmarc-cover.webp)

### How to Set Up SPF, DKIM and DMARC for Google Workspace

If emails from your domain land in spam or don’t arrive at all, the first thing to check is three DNS records: SPF, DKIM and DMARC. Since 2024, Gmail…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=297:google-workspace-spf-dkim-dmarc&catid=29&lang=en-GB)

 [ ![A shield with a padlock in a browser window, a step checklist and a question mark — a guide to choosing reCAPTCHA and getting keys](https://it-deweloper.pl/images/blog/choose-recaptcha-version-cover.webp)

### How to Choose reCAPTCHA for a Form and Get the Keys

reCAPTCHA protects your website forms from spam bots. During 2025, Google moved all reCAPTCHA keys to Google Cloud, so many older guides are out of d…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=296:choose-recaptcha-version&catid=29&lang=en-GB)

 [ ![A map pin in a browser window, a step checklist and a question mark — a guide to embedding a Google map on a website](https://it-deweloper.pl/images/blog/embed-google-map-on-website-cover.webp)

### How to Embed a Google Map on Your Website Without an API Key

A map on your Contact page helps customers see where you are and get directions straight away. You don’t need an API key or a payment card in Google…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=295:embed-google-map-on-website&catid=29&lang=en-GB)

 [ ![A target with an arrow in a browser window, a step checklist and a question mark — a guide to checking Google Ads conversions](https://it-deweloper.pl/images/blog/check-google-ads-conversions-cover.webp)

### How to Check That Google Ads Conversions Are Tracked

Google Ads learns from conversions: enquiries, calls, purchases. If they’re counted wrongly, the system optimises your campaigns blind — spending bud…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=294:check-google-ads-conversions&catid=29&lang=en-GB)

 [ ![Pie and bar charts in a browser window, a step checklist and a question mark — a guide to building a Data Studio report](https://it-deweloper.pl/images/blog/data-studio-first-report-cover.webp)

### How to Build a Data Studio Report from Analytics and GSC

Data Studio is Google’s free tool for reports and dashboards. In April 2026 Google brought back this name; for several years before that it was calle…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=293:data-studio-first-report&catid=29&lang=en-GB)

 [ ![A cookie icon in a browser window, a step checklist and a question mark — a guide to checking Google Consent Mode](https://it-deweloper.pl/images/blog/check-consent-mode-v2-cover.webp)

### How to Check If Consent Mode v2 Works on Your Website

Google Consent Mode v2 passes the choice a visitor made in your cookie banner to Google Analytics and Google Ads. A banner can look perfect and still…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=292:check-consent-mode-v2&catid=29&lang=en-GB)

 [ ![A Tag Manager tag icon in a browser window, a step checklist and a question mark — a guide to installing Google Tag Manager](https://it-deweloper.pl/images/blog/install-google-tag-manager-cover.webp)

### How to Install Google Tag Manager on Your Website

Google Tag Manager is a “box” for all the tracking codes on your site: Google Analytics, Google Ads conversions, social media pixels. You install the…

 ](https://it-deweloper.pl/index.php?option=com_content&view=article&id=291:install-google-tag-manager&catid=29&lang=en-GB)

 [](#)

 [](#)

   ##  Build your website

Find out what your website will cost

 [ Pricing ](https://it-deweloper.pl/index.php?Itemid=262&lang=en-GB)

 ![](https://it-deweloper.pl/media/yootheme/cache/3c/background-square-01-3c44c74f.png?src=images/yootheme/demo/background-square-01.png&thumbnail=900,900,&hash=72c31958)

 ![](https://it-deweloper.pl/media/yootheme/cache/cb/background-square-03-cbb341a0.png?src=images/yootheme/demo/background-square-03.png&thumbnail=600,600,&hash=6e9dde93)

###  [ Contact ](https://it-deweloper.pl/index.php?Itemid=277&lang=en-GB)

Web studio IT Deweloper website development, Poland. 5423493188

 SEOAIAdsWebSMM

### Address

Nowogródzka 4A
 Białystok, 15-490, PL

 [

### Phone

+48 731 190 041

 ](tel:+48731190041)

 [

### Email

This email address is being protected from spambots. You need JavaScript enabled to view it.

 ](mailto:office<!---->&#64;<!---->it-deweloper.pl)

 [

### WhatsApp

 ](https://wa.me/48731190041)

 [

### Telegram

 ](https://t.me/+48731190041)

 Opening hours:

- Monday

    0900–1800
- Tuesday

    0900–1800
- Wednesday

    0900–1800
- Thursday

    0900–1800
- Friday

    0900–1800
- Saturday

    0900–1600
- Sunday

    closed

 ![IT Deweloper](https://it-deweloper.pl/images/Logo.webp)

Web development can be interesting! Our social media, with content about building websites.

- [](https://www.facebook.com/ITdeweloper)
- [](https://www.linkedin.com/company/it-deweloper)
- [](https://t.me/IT_deweloper)
- [](https://www.instagram.com/it_deweloper/)
- [Portfolio](https://it-deweloper.pl/index.php?Itemid=264&lang=en-GB)
- [Contact](https://it-deweloper.pl/index.php?Itemid=277&lang=en-GB)
- [About us](https://it-deweloper.pl/index.php?Itemid=261&lang=en-GB)

**it-deweloper** — a web development studio.
We design and build modern websites and online stores.

© [it-deweloper](https://it-deweloper.pl/en).
All rights reserved.

[Privacy Policy](https://it-deweloper.pl/index.php?Itemid=313&lang=en)
