How to setup Google Analytics 4 (GA4) using Google Tag Manager (GTM) - Digital Analyst Team
logo
logo

Get in touch

Awesome Image Awesome Image

GA4/GTM

How to setup Google Analytics 4 (GA4) using Google Tag Manager (GTM)

Writen by Magesh

comments 0

Setup Google Analytics 4 using Google Tag Manager

Google Analytics 4 (GA4) has lots of great features. In fact, it has lots of capabilities compared to its predecessor, Universal Analytics. One of the most powerful ways to use GA4 is with Google Tag Manager (GTM), which allows you to add and manage tags on your website without modifying the code.

In this blog post, you will learn the process of integrating GA4 with GTM. You’ll learn how to create a GA4 property and tracking code, set up a GTM container, and configure tags and triggers to send data to GA4.

Let’s get started.

Step 1: Create a GA4 Property and Tracking Code

The first step in integrating GA4 with GTM is to create a GA4 property and tracking code. To do
this, follow these steps:

First, sign in to your Google Analytics account and click “Admin” in the bottom left corner.

GA4 Property and Tracking Code

In the “Property” column, click “Create Property”.

Create Property in GA4

In the next window under property setup, give your property a name, timezone, and currency and proceed to click “Next”.

GA4 Property Name Time zone and Currency

GA4 will take you to the next option, Business Information. Here you will fill in your business details, including; business category, size, and how you intend to use GA4 with your business.

Add Business Details in GA4

Once you’re done, Click “Create,” and Google analytics will show a message confirming that you’ve created the property.

On the next page, you will see the option to add a data stream. Here, you can choose web, iOS, or android. So select your data stream of choice, give it a name and click “Create stream”.

Once you have created your stream, youll be able to see your GA4 tracking code under ‘webstream details’(if you chose Web as a data stream).

Web stream Details

Step 2: Set up a GTM Container

The next step is to set up a GTM container for your website. You can skip this step if you already have a GTM container for your website. To create a new container, follow these steps:

Sign in to your GTM account and click “Admin”. Then click the (+) sign under Container.

Setup GTM Container

Next, give your container a name, and select “Web” as the target platform. Finally, click “Create” and accept the terms of service.

Create Container in GTM

Follow the instructions to add the GTM code to your website. It will include copying code and pasting it on your website’s pages.

Google Tag Manager Installation

Step 3: Configure Tags and Triggers

Once you have created a GA4 property and a GTM container, you can start configuring tags and triggers to send data to GA4. To do this, follow these steps:

In GTM, navigate to the “Tags” section and Click create a new tag by clicking “New”.

Configuring Tags and Triggers

Give your new tag a name and under Tag Type, select the “Google Analytics: GA4 Configuration” tag template.

Tag Configuration

Then enter your GA4 tracking code under Measurement ID.

Next up, in the “Triggering” section, select the triggers that activate your tag. For instance, you can create a trigger that fires on all pages or only on specific web pages.

Choosing a Trigger

Finally, click “Save”.

Saving Tags and Triggers

Step 4: Publish and Test

The final step is to publish your container and test that it’s working correctly. To do this, follow these steps:

In GTM, navigate to the “Workspace” section.

Workspace in GTM

Click the “Submit” button and give your container a name and description.

Publishing GTM

Once your container is published, use the GA4, and GTM debug tools to test your implementation and ensure that data is being sent correctly.

That’s it. You’ve published your container and implemented Google Analytics 4 with Google Tag Manager.

Get More Insights

Integrating GA4 with GTM allows you to take full advantage of the new features and capabilities of GA4 while also streamlining the process of adding and managing tags on your website.

By following the steps outlined in this post, you can easily set up GA4 to work with GTM. Having the GTM for Tagging your websites helps you track your conversion better and get better site analytics.

This blog has helped you learn how to combine GA4 and GTM to get more and better insights from your site data. Stay tuned to our blog for more information on GA4.

Tags : ,