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.

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.

Then click on Create Account.

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.

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.

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.

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.

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

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

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

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

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

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

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

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.

Click on Add new.

Search for site kit and install the plugin called 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.

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

Enter your credentials and click on Continue.

Click on Verify.

Click on Allow.

Click on Set up.

And click on Next.

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

The screen will load for a few seconds.

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

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: