Google Analytics 4 – Google has recently (October 14, 2020) launched its next-generation Google Analytics, called Google Analytics 4 a.k.a. GA4. It was previously known as App + Web Property on the beta run.
GA4 will be the default experience for new Google Analytics accounts. Google will no longer be investing in the older version of GA, Universal Analytics.
In order to stay up-to-date with future improvements to GA, Google advises using the new Google Analytics 4 property alongside your existing Universal Analytics properties. Google is slowly rolling out a migration feature for the existing Universal Analytics (UA) properties. If the Upgrade to GA4 option is not available on your GA account, don’t be worried. Let us take you through how to create the new Google Analytics 4 property & implement on your website 🤝
If you don’t have Upgrade to GA4 enabled on your Google Analytics Account, that’s perfectly fine. Keep reading, we will guide you on how to get the new GA4 property even without this option.
If you got Upgrade to GA4 option enabled on your account, see How to upgrade to new Google Analytics 4 (GA4) Property. Once you managed to upgrade, come back here & continue from Step 06
In this step-by-step guide, you’ll learn how to;
- Create a new Google Analytics 4 property
- Connect your existing Universal analytics Property with GA4 Property
- Install the tracking code on your website (replace the existing UA tracking code)
- Verify the new implementation is working properly by accessing the real-time report.
Create a new Google Analytics 4 property
Head over to the Google Analytics homepage & login with your Google account. If you’re a new Google Analytics user, you’ll be prompted to create an account & accept the end-user user agreement. Once the initial account set up is done, you may proceed to create the new Google Analytics 4 property.
Click on Admin > Create Account or select an existing account you wish to set up your new property > Click on Create Property
Select Apps and Web & press Continue.
As we mentioned above, the new Google Analytics 4 & Apps and web properties are the same. Google will eventually rename this 🤞
Give a name to your new property & select appropriate options from the drop downs & click on Create
Now you’ll get below screen. If not, click on the admin > select your new property > Data Streams & select Web
Enter your website URL & give a name (i,e My WordPress website, etc).
Enhanced measurement would be enabled by default. We would recommend you to keep this enabled to get the maximum benefit from your new GA property. We will cover more about Enhanced measurements & its benefits in our future blogs.
Click on the gear icon to select the features you would like to enable. Once done press Save & Create Stream
Connect your existing Universal Analytics Property to GA4
Go back to your existing UA property by clicking on Admin > Select your UA Property from the drop down > Tracking Info > Tracking Code & Copy your Tracking ID
Switch back to your new GA4 Property by selecting the new GA4 Property from the drop down > Click on your Stream > Connected Site Tags
Enter/paste the Tracking ID you copied from Step #06. Give a nickname & press Connect
Installing tracking code on your website
Click on Add new on-page Tag > Select Global Tag (gtag.js) > Copy the tracking code. Now it’s time to place the code on your website.
We are using a WordPress site to demonstrate how to install the code. However, the approach is the same for any platform. Also, there are few methods you could use to implement Google Analytics on your WordPress site. Such as;
- Using Google Tag Manager
- Using a Google Analytics Plugin
- Using a plugin to insert the tracking code to your head section (here is a free plugin with 1 Million+ active installations)
- Your child theme’s header.php file etc. However, for simplicity purposes, we chose to utilize the Divi theme’s options panel for this blog post. However, it’s up to you to choose your preferred & feasible method to install the tracking code to the head section.
Important: If you already have the Universal Analytics Tracking Code installed on your website, you have to replace it with the new GA4 gtag.js code
Note: For the simplicity purpose, we are not using any plugins or child themes & installing the tracking code on the theme’s built-in options panel. However, installing the tracking code directly to the theme is not a good approach. using a tag solution such as Google Tag Manager (GTM) would be a robust method to install Google analytics or any tracking pixels. If you need help implementing Google Tag Manager, feel free to contact us. 🙏
Once the above step is completed, open your website in a new browser tab.
Now let’s head back to the Google Analytics UI. Choose your new Google Analytics 4 Property from the drop-down.
Go to Realtime from the left menu
Let’s verify our implementation
You’ll start seeing the real-time user count & the pages visited on both GA4 & the Universal Analytics Properties 😍
GA4 Real Time View
Universal Analytics Real Time View
That’s all. You have successfully implemented Google’s next generation analytics property GA4 👏👏👏
If you’re facing any issues seeing the real-time data or stuck on any steps mentioned above, feel free to comment here or contact us. We would love to help you further. Cheers 🍻