How to Install Google Analytics 4 (GA4)?

Building a Data-Driven World at Japan Data Forum
Post Reply
mstlucky8072
Posts: 31
Joined: Mon Dec 09, 2024 3:46 am

How to Install Google Analytics 4 (GA4)?

Post by mstlucky8072 »

In October 2020, Google announced that the current Universal Analytics (UA) tool would stop processing data, or working, completely as of July 1, 2023. I would like to point out that this date is July 1, 2024 for Universal Analytics 360 users. With the complete removal of the Universal Analytics tool from our lives, Google Analytics 4 (GA4), a new and much more powerful tool in the field of measurement, is emerging. This article will only help you with the basic installation of Google Analytics 4 so that you can continue to measure when Universal Analytics stops processing data as of July 1, 2023. If you already have customized measurements such as goals, events, e-commerce activities that you are currently tracking in your current Universal Analytics , you will need to make a more advanced transition.

How to Create a Google Analytics 4 Property?
First, we go to our existing Google Analytics account. Our current Universal Analytics property can continue to work as is and stay with us until the deadline above. It would be best if GA4 and UA worked together.



If you already have a Universal Analytics account, you will need to go through the account as highlighted in red below. Or you can also click on the “GA4 Setup Assistant” section, but I will show you how to create a property manually.



Step 3: If you clicked “Start measuring”, you need to create an account first. You can write your site or brand name, leave the boxes below as they are and click “Next”.



Step 4 : In the Property setup section, you should fill in the following fields according to your site and location. If you have an existing Universal Analytics account, you will start directly from this step without seeing the “Step 2” and “Step 3” sections.



Step 5 : In the “Business information” stage, you should make the appropriate choices for your industry and business. The choices here do not directly affect the operation of the GA4 tool. So you do not need to think too much while making the choices here.



Step 6: When we click “Create” in the step above, our property will now be created and “Data streams” will appear. Let’s select “Web” from here. If you have an Android or iOS app, you can later install it within the same property. Firebase integration under the same account is one of the new features that GA4 provides us. Since app installations proceed differently and the most common is web installation, we will continue on the web in this article.



Step 7: On the screen that appears after the web selection, you can fill in the fields below according to your own site. After saying “Create stream”, your Google Analytics 4 property will now be created.



How to Integrate Google Analytics 4 into Your Site?
We have set up our GA4 property, but the property we set up is overseas chinese in uk data currently empty and not integrated with any site. The next steps will be to integrate it to our site and activate the tool. There is more than one method to integrate Google Analytics 4 to the site. I will show you the two most commonly used methods, manual and Google Tag Manager (GTM). If you have a GTM account, I can recommend integrating via GTM instead of manually.

Manual Integration
Step 1 : After creating the property, click “Install Manually” on the screen that appears.

Image


Step 2 : Copy the tracking code by clicking where I show below. Send this tracking code to your developer and ask them to paste it at the top of the <head></head> tags on all pages. Since the testing phase is almost the same in both GTM and manual, I will show you how to test whether the property works at the end of the GTM method. So when your developer says he added the code, you can test it by following the instructions in the “How to Do Google Analytics 4 Integration Testing” section at the end of the article.



Integration with Google Tag Manager (GTM) Method
As I mentioned above, I recommend integration with the GTM method. For this, you need to have a GTM account installed on your site. If you do not have a GTM account installed, you can easily install it. You can find instructions on GTM installation in our article here .

Step 1 : Let's close the previous method screen, and then the "Data streams" screen will appear as below. If it doesn't, you can open this section by clicking "Data streams" under the property menu. Let's copy our ID that I marked as "2" here.



Step 2 : Then, let's open our GTM account, go to the "Tags" section from the left menu and click "New".



Step 3 : Afterwards, you can name the field I marked as “1” as you wish. I prefer the name “GA4 - Configuration” in installations.



Step 4: Let's select "Google Analytics: GA4 Configuration".



Step 5 : Let's paste the ID we copied in the first step here and click "Triggering".



Step 6 : Since we will run it on all pages, let's select "All Pages".



Step 7 : The final version of our label will look like this. Let's save it by clicking "Save".



Step 8: Then we need to publish it by clicking “Submit”. We can publish it by clicking “Submit” and then “Publish”.



How to Perform Google Analytics 4 Integration Testing?
We have implemented our Google Analytics 4 integration, finally let's test it to see if it is active. Although there are different methods for this, I will show you the debugging method with the plugin.

Step 1 : Let's install the "Google Analytics Debugger" plugin on our browser. You can access it from here . After installing it, let's fix it to our browser as in the 2nd image.
Post Reply