How to install Google Analytics code via GTM on your website

09/02/2021
3151
0
How to install Google Analytics code via GTM on your website
How to install Google Analytics code via GTM on your website

Installing Google Tag Manager

To get started, you will need to register a Google Tag Manger account using the link https://tagmanager.google.com/. Follow the link and click create account

Installing Google Tag Manager | WEDEX

In the next window fill in:

  1. Account name – we give a clear name so that you don’t get lost in the future and effectively manage your accounts.
  2. Select a country.

Базовая информация

If you wish, we allow you to transmit anonymous data to Google. We give the container a name, most often we write the domain name. As well as the target platform, depending on where the GTM will be installed: website, application, etc.

создание контейнера GTM

Click “Create”. In the next window we accept the user agreement.

GTM user agreement | WEDEX

Next, the container workspace opens with a modal window that contains codes for installing GTM on the site. Now you need to submit these codes to the developer. We draw it up in the form of technical specifications.

ТЗ программисту на установку GTM

If you suddenly close the window with installation codes, you can always find them again by clicking on the container identifier.

How to install the code via GTM | WEDEX

To check that the GTM code is installed correctly, you can use the browser application – Tag Assistant Legasy (by Google)

Tag Assistant Legasy (by Google)

With this application, you can always quickly understand whether Google Analytics, Google Tag Manager, as well as their identifiers are installed on the site. After the programmer installs the codes on the site, a GTM with the required identifier will appear in this application. The icon will be displayed in yellow and give a 404 error. Don’t be alarmed, an empty container always returns a 404 server code. After adding the first tag, everything will be fine.

Пустой контейнер GTM - 404 ошибка Пустой контейнер GTM - 404 ошибка(2)

How to install Google Analytics – Universal Analytics code on a website via GTM

In the workspace, go to the “Tags” tab

создание тегов в GTM

Click create and give a clear name.

How to install Google Analytics code via GTM | WEDEX

We select the tag configuration – for GA tags, standard installation codes are already entered in the system, so we only have to configure correctly.

стандартные теги в GTM

Select the tracking type – Page View

Create and add a new variable

New variable | WEDEX

We give a clear name and enter the Google Analytics view ID.

Google Analytics view ID | WEDEX

The identifier must begin with UA. You can find it in the Google Analytics view.

Google Analytics view ID 2 | WEDEX

Google Analytics view ID | WEDEX

Next we save the variable. And add the tag configuration window to the “Google Analytics Settings” field.

Tag configuration | WEDEX

Now let’s move on to setting up the trigger.

Tag configuration | WEDEX

Select “All Pages”

Choose a trigger | WEDEX

Saving configurations

 

Tag configuration | WEDEX

Click “Send”

Tag configuration | WEDEX

And publish the change to the container

Sending configuration | WEDEX

Congratulations, you have independently installed the Google Analytics – Universal Analytics counter on your website.

How to check if the GA meter is installed correctly via GTM

This can be done in several ways

  1. Through the built-in debugger, transfer to analytics tools. In the work area, click on “Preview”
    How to check the correct installation of the GA meter via GTM | WEDEX
  2. After the transition, we enter the domain of the site on which we check the functionality of GA.
    How to check the correct installation of the GA meter via GTM | WEDEX
  3. After the “connection” we see that the Analytics tag worked

    предварительный просмотр тегов в GTM

  4. You can also check the installation of Google Analytics in its own interface. To do this, you need to go to the website and also open an overview of the report in real time in analytics.

    как проверить правильно установленный счетчик GA

How to install Google Analytics 4 (GA4) code on a website via GTM?

In the workspace, click on the “Tags” tab

настройка тега GA4 в GTM

Click create and give the tag a name.

How to install Google Analytics 4 (GA4) code on a website via GTM | WEDEX

We select the tag configuration – for GA4 tags, standard installation codes are also already entered in the system.

настройка тега GA4 в GTM

Copy the identifier from GA4 and paste it into the appropriate field.

How to install Google Analytics 4 (GA4) code on a website via GTM | WEDEX

The ID can be found in the Google Analytics property settings.

How to install Google Analytics 4 (GA4) code on a website via GTM | WEDEX

How to install Google Analytics 4 (GA4) code on a website via GTM | WEDEX

Select “All Pages”

How to install Google Analytics 4 (GA4) code on a website via GTM | WEDEX

Saving configurations

How to install Google Analytics 4 (GA4) code on a website via GTM | WEDEX

Click “Send”

How to install Google Analytics 4 (GA4) code on a website via GTM | WEDEX

And publish the change to the container

How to install Google Analytics 4 (GA4) code on a website via GTM | WEDEX

The Google Analytics 4 counter code is installed on the site. It is also possible to check whether the meter is installed correctly:

  1. Via the built-in debugger
  2. In its own interface. To do this, you need to go to the website and also open an overview of the report in real time in analytics.
Olha Tyshchenko
Editor
commercial offer

    SEO promotionCopywritingSMM promotionDevelopmentContextual advertisingDesign
    Digital новини в нашому телеграм-каналі
    Інтернет-маркетинг
    простою мовою
    subscribe
    Other articles by the author
    13/10/2025
    Design is no longer limited to aesthetics—it must fulfill a strategic function: persuading customers, increasing brand awareness, and promoting sales.

    10/12/2025
    At first glance, shortening links seems like a minor detail—a technical nuance that has little impact on results. But in reality, it plays a significant role in digital marketing.

    10/07/2025
    Choosing a reliable contractor is a strategic investment in the effective use of your promotion budget and in the long-term scaling of your sales channels.

    Latest articles by #GTM
    09/12/2025
    For businesses, being on Maps means extra traffic to their store, calls, bookings, and more trust thanks to real reviews.

    10/11/2025
    Teaser advertising is a format built around partial disclosure of information in order to arouse interest and stimulate further interaction.

    22/10/2025
    The digital market is becoming increasingly saturated, and users spend their time not only searching, but also reading news, watching videos, checking email, and using mobile apps.

    WhatsApp Telegram Viber Почати розмову