How To Install Google Analytics
How To Install Google Analytics

Welcome to today’s new post. Now I want to start a little analytics tools set up series. First I’ll instruct how to install Google Analytics on WordPress websites.

I set up a new account here step by step and then we look into what it can be used for. Google provides this free tool for us to see how many visitors come to our site.

Google probably also uses the gained statistics to see how our websites are doing and accordingly ranks our articles.

In general, it is advised to have a relationship with Google and with joining these offered programs we do our part of getting in touch with the all mighty Google.com.


Sign-up for free and set up your account.

First, you want to sign up for google analytics. Here I have pasted the link to where you can sign up with one of your Google email accounts.

How To Install Google Analytics For WordPress - See Your Visitors
How To Install Google Analytics For WordPress – See Your Visitors

I haven’t set up a separate account for this website yet, so let’s see how this works.

Once you click the sign-up button you land on the first set up page. First, you chose what you want to track, I want to track a website.

Next is an account name of your choice, I call it the super affiliate university. Then the website name which in my case is the same.

Then you enter your URL. Don’t forget to select the http:// or https://. mine is as you know, https://asuperaffiliate.com.

Next, come the industry category and time zone. I chose “jobs and education” and my timezone is Thailand. Try to be accurate and help Google understand your website.

Now you can read some information Google provides on how they use the data collected. You can also not allow Google using data for some specific topics.

I leave all as it is and now get my tracking code. I accept the terms they present and now enter my new dashboard.

You can read all the information written here but the important two things you need to do now are.

#1. To place the tracking ID into your WordPress all in one SEO plugin. If you don’t already have installed the plugin I recommend to do this now and activate it.

#2. To add the tracking code, the “Global Site Tag (gtag.js)” to the website HTML editor. Here you have to be careful not to change any existing content or you mess up your website.


#1. Let’s add the tracking ID to the SEO plugin.

Let's add the tracking ID to the SEO plugin
Let’s add the tracking ID to the SEO plugin

You have added the plugin and activated it. Now go to the word press dashboard and on the top left you can see the “all in one SEO” and open general settings.

Scroll down until you see the “Google settings”. A little further down you find the field where you post the Google Analytics ID.

For the moment you don’t want to do any other changes here, go down to the bottom and save the changes.


#2. Let’s add the tracking code, Global Site Tag into the header theme.

You go back to the wp dashboard and open “Editor” under “Appearance”.

Now look at the right side and find the “Theme Header” option and click there.

Here you have to be careful not to change any existing entries. Look for where it says <head>

Enter some empty spaces underneath first.

Let's add the tracking code
Let’s add the tracking code

Now it should look something like this. Add the complete tracking code snippet under <head> and save the changes.

If you don’t have the “all in one SEO plugin installed, now the Google analytics tool should work anyway.

I won’t show my snippet, someone could copy it and do naughty things with my Google analytics tool 🙂

These steps are done successfully.


I have missed out on something small, you might have as well. Somewhy in the “account settings” I had to read and accept the “Data Processing Amendment”, at the bottom of the page.

If you see, that the account was accepted with the date in green, everything is ready to play. You can now click on the home on the left and see how many people stay on your site.

Probably there’s not much to see there yet 🙂 To test if everything works right you can open a post on your website and see how it appears in Google Analytics Home.

If this is ok, open the “Real Time”/ “Overview” and see your self as the first visitor shown in this analytics. You can see which article you have opened and with what device and other interesting metrics including a map.


Victory


Do some fine tuning for a better result.

The first and most important tuning you will want to make is, to exclude your own searches. If you don’t do that you’ll have unrealistic results.

Google analytics sees which IP address the search is coming from and you can add a filter to provide collecting data on your own activities on the site.

If you work on several computers or have other people working with you on another computer than yours, you want to filter them out too.


Adding a filter to Google analytics.

Adding a filter to Google analytics.
Adding a filter to Google analytics.

I suppose you are on the home page of your analytics account now. On the left at the bottom you see the admin button, click on it now.

In the left row you see your account and there you click on “All Filters”. Now you can add a new filter, click add filter.

Now you need to fill out some criteria. Filter name, “My self” example. Select filter type, “Exclude”. Select source or destination, “traffic from the IP address”, the second choice. Select expression, the first, “that are equal to”

Whats my IP address
Whats my IP address

Now you have to enter your IP address.

Click here and find it easily. http://whatismyipaddress.com/

After you copied and pasted the IP address you go down to “Apply Filter To Views”, click on “all website data”, click on “add” in the middle and save all changes.

Now your own computer gets filtered out of the statistics. For every other device or computer that is working on your site, you now want to do the same ritual.

One filter name per IP address so in case you want to delete one, you have an easy job.

PS. I just read this small writing. Often, residential services, give dynamic IP addresses that can change over time, meaning the filter has to be updated or a new IP filter has to be added.

Even worse, is when you use VPN, then the IP address changes with every new login and the filter get worthless.

For further filtering of spam and such, I’m not yet able to explain fully or detailed. You can check here and open 2.1. for more training.


Take advantage of the Information exposed by Google Analytics.

Real-time Overview

First of all, of course, you can see the number of visits to your site. In the real-time overview, you see the real-time number of visits, on which page they are, where they linked in from and from which country they are.

 

Real-time Overview
Real-time Overview

It should also show the keywords they used or social traffic but this hasn’t shown to me as for now.


Home

On the home page, you see statistics, of weekly visitors compared with the week before or monthly.

Further down it tells you how you “acquire users”, organic traffic, direct, social or referral. More down you see how your active users are trending over time and how well you retain users.

On the lowest level, you see a statistic of the main visits by time and days. A list of the countries most visitors come from and what device they use to get on your site. And you can see what pages your users visit.

For every aspect, there are options for time frames you can choose from.


Real-time location

Reveles more details on the location of your visitors. With time you have much information and can target the audience by the location they are coming from.

More interesting information about traffic source and visited content can be looked at here.

Audience overview

Audience overview
Audience overview

You can see the number of new visitors vs. returning visitors, page views, avg. session duration, bounce rate etc.

Please Share On Pinterest
Please Share On Pinterest

All these criteria can help you learn what you should improve to get better results. Of course, in the beginning, you have very little data to use.

You have to get used to looking at all the data here and with time you learn how to take advantage of them. For now, in the beginning, it is a bit of a playing around and mainly for motivation purposes.

I like to see how many visitors I have on a day and try to figure out why some on days there are more and on others less.

I try to connect the numbers with my activities on my website or social media to see where the biggest increase can be achieved.

For example, after improving my Pinterest account I registered a steady increase every day. I also found out, when I work on a site and publish new content the number of visitors increases drastically.

The other way around, when I don’t publish new articles the number decreases every time.

With another website I have, which I don’t maintain at the moment, I happily see, that I have a small but regular number of visitors every day.

This means some articles do reach an audience already without doing any promotion anywhere.

There is a lot more we can benefit from using analytics but to tell you the truth, I do not yet have the experience. I’ll get into that when the time is right.

For the moment it is important that we have installed the program and made us once more seen by Google. We can look at the visitor numbers and enjoy if they are rising.

You find more benefits of Google analytics if you go here and open the link 2.2.


Here I added a little teaser for you to see what we can do with the help of Google Analytics in the future.

 


Thanks for the visit.

I know, this training wasn’t too interesting but in the end, we have to do some technical stuff too.  It wasn’t a lot of fun for me to write this article as well, I can tell you.

I’ll go on with this series and the next thing we’ll sign-up to, is the Google Search Console.

Again, don’t expect to find an exciting article. All about instructions and some description. But again it is important to use this tool for better SEO and online performance.

For today I wish you all the best, have fun checking out your metrics on analytics and best of success in your new career.

See you, Stefan 🙂 asuperaffiliate.com

PS. Don’t lose too much time watching the analytics tool. In the beginning, it can be a bit frustrating due to not having many visitors 🙂


Join My Favorite Website Building Program
Join My Favorite Website Building Program

Oh, of course, I’ve forgotten something.

Please, If you have a question leave it below. We all like to read your comments, opinions, and suggestions.

For me, it will be a pleasure to reply to all of your comments.

Thank’s and have a good time.