Come, meet us at brightonSEO, UK on 25th and 26th April 2024 Click here
Scroll to top

How to set up Google Analytics 4 using Google Tag Manager

Google Analytics 4

Google Analytics 4 (GA4) is the latest version of Google’s web and mobile analytics platform. It uses machine learning and artificial intelligence to provide more advanced tracking of website traffic and user behaviour. It also includes new features such as cross-device tracking and automatic event tracking, as well as integration with other Google services.

What is GTM and How Does It Work?

Google Tag Manager (GTM) allows users to easily add and manage marketing and analytics tags on a website or mobile app. It will enable users to add snippets of code, called “tags,” to their website or app without modifying the source code. These tags can be used for various purposes, such as tracking website visits, user interactions, conversions, and targeting and retargeting ads. Once the tags are added, they can be managed and configured through the GTM interface, which simplifies tracking and analyzing website data.

Here are the working criteria of GTM are explained as follows:

Google Tag Manager (GTM) is a tool that allows you to manage and deploy marketing and analytics tags on your website without requiring code changes.

First, a user creates a GTM account and sets up a container for their website or app. Then, they add the GTM tracking code to their website or app, typically to the head section of their website’s HTML.

Once the container is set up and the GTM code is installed, the user can add and manage different tags through the GTM interface. These tags can be used for various purposes, such as tracking website visits, user interactions, conversions, and targeting and retargeting ads.

Once the tags are configured, they will begin collecting data from the website or app and sending it to the relevant analytics or marketing platforms. This data can then be used to track website performance, user behaviour, and other metrics, which can be used to optimize the website or app for better performance.

Components of Google Tag Manager

Components of Google Tag Manager

Google Tag Manager (GTM) has several components, including:

1. Container: 

This is the main GTM component that holds all of your tags, triggers, and variables.

2. Tags

Tags are snippets of code that you use to track events or send information to other platforms, such as Google Analytics or Facebook.

3. Triggers

These define when and where tags should fire on your website or app.

4. Variables

Variables store information that can be used in tags and triggers, such as a page title or user ID.

5. Preview and Debug mode

GTM has a built-in preview and debugs mode that allows you to test and debug your container before publishing it.

How to Create GA4 Property and Data Stream?

  1. First, log in to your Google Analytics account and click “Admin” in the bottom left corner.
  2. In the “Property” column, click on “Create Property.”GA4
  3. Select “Web” or “App,” depending on the type of property you want to create.
  4. Fill in the required information, such as the property name and website or app URL.GA4
  5. Click on “Create Stream” to create a new data stream for the property.
  6. Fill in the required information, such as the stream name and stream type (web or app).GA4
  7. Click on “Create Stream” to complete the process.

Data StreamYou can then connect your website or app to the new data stream by installing the GA4 tracking code on your website or integrating the GA4 SDK in your app.

Need Help With Installing GA4 and GTM? Contact Us!

What Is Enhanced Measurement?

Enhanced measurement in Google Tag Manager (GTM) is a feature that allows users to track and analyze user interactions on their website beyond just traditional page views and clicks. It can include tracking events such as video plays, form submissions, and scroll depth and allows a more detailed analysis of user behaviour on the site. Enhanced measurement can be set up using GTM’s built-in triggers and tags or custom code.

Enhanced MeasurementWhere to Find the Measurement ID?

  1. When you create a new data stream, a measurement ID will be generated.
  2. Click on the ‘Property’ column followed by the data stream.
  3. You’ll be able to view the measurement ID from the top right corner of the interface in the data stream.


How to Set Up GA4 Using GTM?

To set up GA4 using GTM (Google Tag Manager), follow these steps:

  1. Create a GA4 property in your Google Analytics account.
  2. In GTM, create a new tag and select the GA4 Configuration tag type.
  3. Enter the GA4 property ID in the Configuration Tag field.
  4. Configure any additional settings, such as custom dimensions or metrics, that you want to include in your tracking.GTM
  5. Create a trigger for the tag, such as “All Pages,” and save the tag.
  6. In GTM, submit the container containing the GA4 configuration tag and the trigger.
  7. Verify the GA4 tracking code installed on your website by checking the GA4 real-time report or using the GA4 Debugging Chrome Extension.GTM
  8. Once GA4 tracking is verified, you can create additional GA4 tags in GTM for specific events on your website, such as button clicks or form submissions.


Google Analytics 4 helps track customer behaviour, fetch business insights, and measure success more effectively than ever. If you need help with GA4 and GTM, contact the best digital marketing company in India, like Brandconn Digital. Our team of experts can set up Google Analytics 4 using Google Tag Manager.

Also Read: Google Analytics 4 – Configuration and Consulting Services

Author avatar
Public advisory against the common scams. Click to read more.