How to create GA4 tag in Google Tag Manager?

Team TypeStack
Team TypeStack ...
Table of Content

Google Analytics 4 brought in a new perspective on the go-to analytics platform. It comes loaded with a new interface and many of its primary metrics have been revamped. The setup process of GA4 is also different. So, if you want to create tracking tags, you will have to learn the process again. Google Tag Manager (GTM) offers a simple, pre-defined route to install GA4 on your website. Likewise, you can also create custom events. In this blog post, we will help you understand how to create GA4 tag via GTM.

Using the Google Analytics 4 Event tag, you can send customized events to Analytics. So, besides sending events automatically, you can use the GA4 tags if you want to gather data on a more indepth level. So, how to create Google Analytics 4 tag in Google Tag Manager? Let’s find out! 

Install Google Analytics on your website

First, you need to install Google Analytics on your website, which you can do with the help of Google tag manager. In case you already have Google Analytics, you simply need to log in and click on the button to start for free. Next, you need to click on admin and set up a new account. In the next step, you need to create a property. Of course, you need to assign a name to your property. 

Next, you need to click on advanced options, which will allow you to create a universal analytics property. In case you don’t know, it is the older version of analytics. Now, copy the URL of the website. 

As we know, the gtag.js tag is a tracking code you need to insert into your website. When you are done placing the codes all through your website, you’ll be to record all the default data that Google Analytics 4 tracks for website visitors. Google Tag Manager makes placing this tag simple. These are the four steps you need to follow:

Step #1: To start placing your GA4 tag on your website, move to your desired GTM account and container and select the option “Add a new tag.”

Step #2: In this step, click on the option “Tag Configuration” to view the options for different types of tags available. Here, you need to pick Google Analytics: GA4 Configuration.

Step #3: Next, you will be able to see a field where you need to insert your Measurement ID. You can figure out your Measurement ID in your GTM account

Step #4: Navigate to the “Triggering” box and click on it. Here, you need to choose where you want to place the tag on your website. In most cases, you will most likely want Google Analytics 4 to fire on all web pages. Nevertheless, depending on your GTM setup, you may want to rule out certain web pages. For example, your website’s private login sections. 

Step #5: Finally, you need to save your tag before publishing your GTM container to make it live. 

Now the GA4 tag on your site is all set to fire. To make sure that you are really able to track sessions, take a look at the Real-time segment of Google Analytics. Here, your own page visit will reflect here soon. 


So, that’s all about how to create a GA4 tag in Google Tag Manager. Add more tags and start experimenting! The more you try, the better you will get at managing the tags.