How to install Google Analytics code via GTM on your website

09/02/2021
2143
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
    19/09/2024
    BERT, also known as Bidirectional Encoder Representations from Transformers, is a neural network developed by Google that has demonstrated high efficiency in solving various natural language processing tasks, including answering questions and machine translation.

    04/09/2023
    Yoast SEO is a useful and powerful tool for every website that can help you reach the top of search engines. It is considered the most common plugin for SEO promotion of WordPress sites.

    09/07/2024
    Target is an English word that translates to "goal" or "purpose". That is why targeted ads are shown to the target audience that can potentially perform the desired action, such as buying a product or signing up for a service.

    Latest articles by #GTM
    13/05/2025
    New opportunities in internet marketing are constantly emerging, changing, and disappearing. However, there are strategies that, despite their controversial nature, continue to enjoy popularity. One such strategy is CPA.

    21/03/2025
    Meta Ad Library is a free tool that contains a large number of existing advertising creatives for Facebook, Instagram, and WhatsApp.

    11/03/2025
    Affiliate marketing is used in many digital business sectors, where joint efforts help to attract targeted traffic and increase earnings for all program participants.

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