WordPress: How to Setup Google Analytics & GA4 On Your WordPress Website

google analytics ga4 setup wordpress

Hello everyone, my name is Lucas Dantas and today I will show you how to properly set up Google Analytics on your WordPress website. If you still don’t know, Google has released a new version of Google Analytics called GA4 and in this tutorial you will learn how to setup the current version and the latest version so you can work with both.

Google Analytics Universal is the current version and it will be discontinued on July 1st of 2023, then you will only be able to use GA4. That is why it’s important to have both of them configured so you don’t lose any data when the transition happens.

Are you ready? Let’s start now!

The first thing you need to do is to go to https://analytics.google.com and log in with your Google account. If you never used Google Analytics before, you will see a screen similar to this one below.

Click on Start measuring to create a new property.

google analytics ga4 setup wordpress

If you are already using Google Analytics, you will see the latest Google Analytics property you have accessed. To create a new property, click on Admin.

google analytics ga4 setup wordpress

Then click on Create Account.

google analytics ga4 setup wordpress

In the next screen, enter the name of your account, for this I recommend using your business name. Then scroll down and click on Next.

google analytics ga4 setup wordpress

Now enter the name of your Google Analytics 4 property, use the domain name and make sure the rest of the info is right. Then you will need to click on Show advanced options.

google analytics ga4 setup wordpress

Click on the switch to enable the creation of a Universal Analytics property and enter your domain name again in Website URL. Make sure you have selected the options like shown below before you click on Next.

google analytics ga4 setup wordpress

Fill out the next form with your business information and if you don’t know what options to check in the last question, just check the ones I have checked. Then click on Create.

google analytics ga4 setup wordpress

Accept the terms and conditions and in the next screen, copy the Measurement ID that has been assigned to your account.

google analytics ga4 setup wordpress

After closing the window, click on the property name like shown below.

google analytics ga4 setup wordpress

Choose the one with UA in its name (UA stands Universal Analytics).

google analytics ga4 setup wordpress

Locate and click on Tracking Info then click in Tracking Code.

google analytics ga4 setup wordpress

Scroll down until you see Connected Site Tags and click on the arrow pointing down.

google analytics ga4 setup wordpress

Now paste the Measurement ID you have copied a few steps before, enter a nickname for it and then click on Connect.

google analytics ga4 setup wordpress

If you have done this correctly, you will see the connected tag right below it.

google analytics ga4 setup wordpress

You have concluded the account setup. Now we have to connect your account to your WordPress website.

Log into your WordPress website’s dashboard and then click on Plugins.

google analytics ga4 setup wordpress

Click on Add new.

google analytics ga4 setup wordpress

Search for site kit and install the plugin called Site Kit by Google – Analytics, Search Console, AdSense, Speed.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

Activate the plugin and you will see an option called Start Setup, click on it. If you do not see it, click on the Site Kit option that will show up in your left panel.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

In the next screen, make sure you have selected the option to connect Google Analytics and click on Sign In With Google.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

Enter your credentials and click on Continue.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

Click on Verify.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

Click on Allow.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

Click on Set up.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

And click on Next.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

In this screen, make sure you choose the right account and the right property before you click on Configure Analytics.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

The screen will load for a few seconds.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

That’s it. You have successfully finished your Google Analytics setup.

google analytics ga4 setup wordpress - Site Kit by Google – Analytics, Search Console, AdSense, Speed.

Until Universal Analytics is discontinued you won’t see GA4 stats in WordPress. But don’t worry, I will be releasing new content on how to find the most important metrics of Google Analytics. Stay tuned in my blog to get more content like this.

If you would like to learn how to setup Google Tag Manager on WordPress, watch this video:

That’s it! I hope this content was relevant to you. Do you have questions? Leave them in the comments section.

I wish you success, see you!

Help me improve my blog by telling me how.

The whole point of this blog is to help you, let me know what you’re having problems with and I will come up with the solution.

%d bloggers like this: