TrackingbyGTM – Digital Marketing | Web analytics | Social Advertising Expert
Tracking by GTM
November 25, 2024
Google Analytics 4 (GA4) is a web and app analytics platform that provides a deeper understanding of customer usage. It’s the next generation of Google Analytics, replacing Universal Analytics (UA). GA4 is important because it
I have split the article into four main chunks:
We have lots of things to cover, so if you don’t have enough time now, you can bookmark this Google Analytics 4 tutorial and come back later.
GA4 is a complex tool with many things to learn/master. And even if you know how to configure certain things, how can you get insights and value?
That’s what I will teach you in my Google Analytics 4 course. I will show you how to configure everything properly, collect data, build reports, and, most importantly, get value out of your data.
If you want to learn more, take a look here.
In this chapter, we’ll look at one of the basic (but fundamental) topics – how to install Google Analytics 4. We’ll do that with Google Tag Manager (using GTAG instead? Then watch this). Here’s the process of how to install Google Analytics 4 with Google Tag Manager:
If you want to create a new Google Analytics 4 property (and you are not upgrading to GA4), then go to the Admin section of your Google Analytics interface (by clicking the Admin at the bottom-left corner) and then (in the Property section) click Create Property.
Then, enter the name of your property. It might be the name of your website, of your company, a brand, etc. Choose your company’s country, reporting time zone, and the main currency that your business operates in.
Then press Next, and answer several questions. Then you will need to select your business objectives. Based on these choices, the reports that you will have in the interface will change too. To make things simpler right now, select Get baseline reports.
Click Create.
The next step to complete is to configure your first data stream. It is a data source from which events will be sent to your Google Analytics 4 property. You can have multiple data sources in a single property. For example, three web properties, 1 for an Android app and 1 for an iOS app.
But in most cases where you track websites, it is enough to have just one web stream (even if you track several websites with it).
In this blog post, I will focus on a Web stream. Select it.
Then enter the URL of your website . Note that the protocol (https) is already selected. After that, enter the name of your website.
When you create a web data stream in Google Analytics 4, you can enable/disable Enhanced Measurement. It is designed to help marketers get as many events in the reports as possible without cooperating with developers or configuring them in Google Tag Manager.
By default, this feature is enabled and will automatically track the following events:
If you want, you can disable/enable events individually. You can do that by clicking the gear icon in the Enhanced Measurement section and then clicking the toggle buttons.
When you create a data stream (web), you will see a Measurement ID.
Copy it. We’ll need to use it in Google Tag Manager.
By the way, if you ever get lost in the GA4 interface, and you need to revisit this page, go to Admin > Data Streams > choose your most recently created stream, and then you will return to the same window that I have displayed in the screenshot above.
Then go to your Google Tag Manager container (if you haven’t worked with it, here’s a tutorial on how to get started) > Tags > New > Google Analytics and choose Google Tag.
In the Tag ID field, enter the ID that you copied in the GA4 interface.
Please memorize this part of the blog post. I will refer to DebugView multiple times throughout the entire article because it’s essential to ensure that your data was properly sent to Google Analytics 4.
Enable the GTM preview mode to test your changes (you can do that by clicking a big PREVIEW button in the top-right corner of the GTM interface).
Once you enable it, you should see the new Google tag among the tags that fired.
If the debug_mode parameter contains any value, the event will be seen in DebugView. If you are using a hardcoded gtag.js, here are the instructions for including the debug_mode parameter.
But since we are working with Google Tag Manager, having the GTM Preview mode enabled automatically sets the debug_mode to true. Thus the data will start appearing in the GA4 DebugView.
When you start seeing data in the DebugView, you can click on every event, and then a list of parameters will be displayed.
Click on that parameter to see the value that GA4 received. Now that is some granular debugging
Deploy cookie banners on your webstie with google concent setting. With perfect tracking with Google analytics nad Google ads and Facebook ads
TrackingbyGTM Marketing Agency
Copyright © 2024 All rights reserved.