If you are running your website, chances are you have already heard about the tracking scripts like Google Analytics, Hotjar, Facebook Pixel or Heap Analytics because you want to track the visitors on your website or blog.
But if you don’t know what these scripts do, then not a problem.
Let me give you a brief about Google Analytics first.
What is Google Analytics, and how to track visitors using it?
What are visitors doing on your pages? Which pages are they visiting? How much time are they spending on your pages? From which geographical location they are coming? From which channel they are coming?
These are some of the critical metrics for any website. More crucial if your whole business model works on your online presence.
Google Analytics provides all this data. And it doesn’t just give the data of a visitor after the site visit, but it also provides the real-time data.
All in all, Google Analytics is a must-have for your website.
How to install Google Analytics on your website?
1. Create an account on Google Analytics
We need to get our unique tracking script from Google Analytics before we can install it on our website. For that, you can go to analytics.google.com and register yourself first.
You can signup using a free Gmail id or a G Suite id. If you don’t have one, you can get it for free. By the way, Google Analytics does provide both a free account and a paid premium account. But a free account will be more than enough for us.
2. Create a property in Google Analytics
Once you click signup, enter the relevant information like your website URL. The account name and website name are for just identification purpose and does not affect tracking.
Once done, click Get Tracking ID. Agree with the data collection terms and conditions. You need to accept them to move forward.
Google will give you a unique tracking id. We are going to use this id for tracking.
3. Install the tracking id on the WordPress website
Now the critical part. There are a couple of methods using which you can install the Google Analytics tracking script on your website. One involves directly copy-pasting the tracking script in the header of the website.
The simple approach, though, is using the plugin. And as usual, there are hundreds of plugins for this. We are going to use Analytify.
Analytify comes in two flavours, one is free, and the other one paid. Right now, we will go ahead with the free version of the plugin.
First, go to the WordPress plugins page and search for Analytify.
Click Install Now and then click Activate.
Then click on the Analytify in the left-hand side menu in the WordPress admin.
For the tracking to work, the plugin should know what the tracking code provided by Google is? On this screen, you can either click ‘Allow and Continue’, or you can choose to click skip this step. Again this step doesn’t affect tracking.
On this screen, you need to click Log in with your Google Analytics Account.
Here you need to select the account which you used while creating the Google Analytics account.
Click allow here, so that Analytify will have access to your Google Analytics account. After allowing Analytify access to your Google Analytics account, Analytify fetches the details of your account. And you will get the following screen.
On this screen, you have to select the Profile for posts. In the dropdown menu, you will see the property you had created in Google Analytics. You can choose not to choose the Profile to the dashboard. But there is no restriction on selecting the same property.
However, we are going to be the sole user of the dashboard or probably your team members. And there is a high chance that you don’t want to track yourself or your team members.
The most important thing, make sure you toggle Install Google Analytics tracking code to Yes.
This will make sure that the plugin is adding the tracking script to your website. Otherwise, you will have to do it manually. But then the whole purpose of installing the plugin is defeated.
Now you can see the visitor analytics either by clicking the ‘Analytify dashboard’ inside the WordPress admin, or you can visit analytics.google.com.
The next script we are going to use is Hotjar. While Google Analytics track how visitors came? From where they came? How much time did they spend on each page? Etc; it doesn’t give information on what they did on that page.
To track the on-page activity of users, we will be using Hotjar. Hotjar does have a free version, just like Google Analytics. However, it is a bit limited. But for now, it will be more than enough.
So what exactly do Hotjar tracks?
Hotjar is good tracking visitor movement on your website. But the important things are heatmaps, and the other one is video recording. Yes, that’s right, Hotjar records the video of what the user does on a particular page.
What are heat maps?
Let me show you the image. That will be easier to understand.
Heatmaps show you what the hot areas are and what are the cold regions. Hot areas are where the visitors have clicked the most, whereas the cold parts are the least accessible areas on a particular webpage.
Heatmaps are an excellent research tool; you can get the data regarding what’s popular and what’s not.
The above screenshot shows the click heatmap. But there are multiple types of heatmaps.
- Click Heatmap
- Scroll Heatmap
- Move Heatmap
Scroll Heatmap shows what the hot areas where most users are scrolling and where they are ignoring the content.
Scroll heatmaps show us how good is your content position. Let’s say there is one crucial CTA on the webpage, but it is in the cold region. So probably you can move it to a different place to get the desired attention.
So all in all, Hotjar happens to be a great tracking tool as well as a research tool.
There are other tools as well to track the visitors but to start with; you should install at least these two tools.
For more such information do read the articles in my blog.