How to set up Google Analytics

What is the essence of installing Google Analytics on your site?

This is a question that I have encountered more times than I would like to recount. And until recently, I didn’t have a layman way to explain it.

Imagine you have a doughnut bar and everyday you sell out on every single doughnut. From the cinnamon-sugar doughnut to the strawberry-frosted doughnut, from the jelly doughnut to the blueberry doughnut. And I bet you want to know who gets the jelly doughnut and who gets the cinnamon-sugar doughnut.

Is it the working class gentleman or the fourteen year old teenager?

That is exactly what Google Analytics gives you. You get to know who consumes what content on your site.

Installing Google Analytics should take you 3 minutes. There is nothing complicated about it.

Also Read: Google Webmaster Tools: The how and the why to enable them on your website

So before I go ahead and walk you through installing Google Analytics on your website, here is why I think you should do it.

Google Analytics is a freemium web analytics service offered by Google that tracks and reports website traffic. – Wikipedia

installing google analytics

Simply put, Google Analytics gives you an alternative to know who are the people interacting with your content. How they are interacting with your content. And gives you an idea on how you can plan for them for future purposes.

My argument for installing Google Analytics will be backed by why I use it.

Also Read: The ultimate guide to configure Facebook Instant Articles for WordPress

The data below is from this blog’s past traffic.

First off, I get to see where my traffic is mostly from. This will give me a general idea of who exactly is interacting with my blog and the language they are using.

Google analytics does give the default language people access your blog from but you can also tell from the countries below that most of the people accessing my blog are English speakers.

google analytics visits by location

With that said, I also like to know what device people are accessing my blog from.

Is it Desktop, Mobile or Tablet. With this data I can enhance my audience experiences. I now know, that not only are most people accessing my data through their desktop; but they also have the least bounce rate.

From my analysis, this is mostly caused (high bounce rate on mobile) with my use of Instant Articles. Though a high bounce rate can be caused by various other things. Some of it

Also Read: The 3 types of web links you should build with every article you write

visits by device google analytics

Another metric I focus on is the amount of time people spend on my blog.

So I look at the pages with the highest average time on page and the bounce rate of each page. Why? I know what my users are interacting with the most.


If you have noticed there are some pages that appear twice. For example “Introduction to some of Kenya’s blogs and bloggers“. Why?

Because Google Analytics is case sensitive in its collection of data. So “Google Analytics” and “google analytics” are two separate metrics registered.

really engaged users google analytics

Another important metric for me is finding my “fans” so to say.


They give me hope and life. So what do I do? I always surprise them with nice incentives when they are around.

This is just one of the few reasons I use Google Analytics.

There is so much data you can gather about your visitors by simply installing Google Analytics and using its platform.

Installing Google Analytics

The first thing you need to do is access Google Analytics.

You will be required to log in. Here choose the google email you would like to use for Google Analytics. With one Gmail account you can have one hundred accounts for Google Analytics. That means, you can have one hundred websites and support it with one Gmail account.

sign in to google

For the purpose of this tutorial, I will use an email account I have never used to sign up for Google Analytics.

Once you log in, you will be required to sign up for Google Analytics if you have never used it before.

Also Read: “I want to start blogging…” This is you? Read on…

google analytics sign up page

Click on Sign Up.

On the next page, you will be able to create a new account.

create new account google analytics

You will choose website or mobile app. Next fill an account name, website name and website URL.

Next choose your industry category and set your timezone.

Once that is done, scroll all the way to bottom and click on get tracking code.

get tracking code google analytics

With this one account you can set up another 100 projects on it. It can either be for your app or website.

Please note, you only need one tracking code per website.

Once you have clicked on “Get tracking ID”, accept Google Analytics terms and service.

tracking id

Finally, copy the script and add it to the <body> tag of your theme.

This script is unique per website and shouldn’t be shared. Reason you can see mine, is because it will be deleted the moment I hit publish.

For example, I use DIVI, so within the theme options – integration, you will enable body code and paste the script in the space provided.

Hit save and there you have it.

divi body code google analytics

Now there are different plugins you can use to install Google Analytics. I personally prefer to have as minimal plugins as possible. So plugins that can only do one function are a no-no for me. Unless their functionality is really core to the running of the site.

Also Read: 7 best unpopular WordPress plugins that’ll skyrocket your blog to success

Give it a day, before you start collecting any data.

Have any questions?

Comment below or even better join my free Facebook community where I share hacks for bloggers.

online hacks for bloggers