Analytics tracks the behavior of your visitors, shows where people leave your website and shows where people come from. It is an indispensable tool you should use to optimize your website.
The benefits of Google Analytics at a glance:
In short: Google Analytics is a repulsive tool that you absolutely must use. And how to install Google Analytics on your website, I'm going to tell you now!
First, we are going to create an account with Google Analytics.
Go to https://analytics.google.com and sign in with a Google account. Don't have a Google account yet? Then go to https://accounts.google.com/SignUp?hl=nl.
Then click on "sign up" on the right. You are now at the creation of a Google Analytics account. Fill in the following information correctly:
The next step depends on whether you chose Google Analytics, Google Analytics 4 or both. If you have chosen Google Analytics 4, you need to create a data stream first.
You can do that by clicking on "Web" and following the steps.
You have now created a Google Analytics account for your website and if all goes well you will now see a screen with important information: a tracking ID and a general site tag (in case of Google Analytics) and a Stream URL, name of stream and a measurement ID in case of Google Analytics 4. Leave this screen open because we will need this information later.
There are several ways to link your website with your Google Analytics account. I am going to explain the 2 easiest and best ways. The easiest way is to download the appropriate plugin and put in here the tracking ID (from Google Analytics) or the measurement ID (from Google Analytics 4). You do this as follows:
And it's that simple to add Google Analytics to your website. But now we want to make sure this is working. Checking your done is done as follows:
If you see 1 or more active users on your site there then you know it's working!
Putting the sitetag script actually requires some knowledge. Nevertheless, I'm going to give you 2 ways how to do this. The easiest way is to ask your website builder to place this script. The script should be placed in the header right after the <head> tag.
The other way is a little trickier, yet I'm going to explain this way to you:
Et voilà. Linking Google Analytics with your WordPress is that simple. Be sure to check that the posted script works, though. If you can't figure it out, you can always ask your website builder to help out. If not, I'll be happy to help!
This article was written on Jan. 31, 2018 and updated on Aug. 22, 2021.
Written by: Daniel Kuipers
Daniel is the founder of Online Marketing Agency. He constantly scours the Internet for the latest gadgets and tactics and blogs about them in understandable language. Well, sometimes.