Wednesday, November 20, 2019
Home > Google > How To Add Google Analytics To WordPress Blog

How To Add Google Analytics To WordPress Blog

When I started blogging, stats of the blog was only for knowing how many visitors I’m getting, and with time I realize stats of my blog is the key to blog growth.

It doesn’t matter if you have a blog with 100 views a day or a blog with 100 million views a day, you need to have a stats program which helps you to track blog traffic and analyze them.

In my earlier post, I have shared about three stats program for WordPress blog, and Google Analytics is one of the free stats programs that is must have for any blog. I would not get into details of benefits of Google Analytics, as I have already covered it here.

In this tutorial, you be learning about setting up your Google Analytics account and adding Google Analytics into your WordPress blog.

I have simplified this guide to non-technical users too, so you don’t have to worry about tech-how of Google Analytics & WordPress integration.

How to Setup Google Analytics Account

Let’s start the guide with setting up Google Analytics account for your WordPress blog. You can repeat the same process for any website too. If you are doing this for your first website, you need to go to Google Analytics page and login using your Google account or create an account which is free.

For the first time setup, you will be asked to add your website details and your personal details to get started. If you are someone who already has an account, click on Admin tab at the top > select account and click on add a new property.

On the next page, you need to add your website details to get the tracking code. Here is a sample screenshot from one website:

Click on Get Tracking ID and you will be moved to the page with tracking ID for your website.

Google Analytics Tracking ID

So far you had successfully setup your Google Analytics account and created the tracking ID for your website.

Now the most interesting part of this tutorial begins; as you need to integrate Google Analytics tracking ID into your WordPress blog. Let’s have a look at it into next section.

Three ways to add Google Analytics to WordPress

There are multiple ways to add Google Analytics (GA) into your blog, and depending upon your level of blogging you should pick one of the below-mentioned methods. I’m putting down the different methods based on my recommended methods

Option 1) Google tag manager:

I started using Google tag manager in 2013 and it becomes my only tag manager for all my sites. It’s free and using it you can manage all the tags for your blog from one place. I recommend GTM to every professional and serious blogger.

It hardly takes 5 minutes to setup and once you are done, you don’t have to worry about tag management in future. Here is a 5 minute tutorial on integrating GTM on your WordPress blog.

Option 2) Using your WordPress theme:

WordPress Theme Footer code

Many of you might not beware of the fact that most of the WordPress theme have an option to add header and footer script. You can use this to add GA tracking code into your blog. Simply copy the tracking code which you obtained in the step1, and go to theme setting option, look for the option to add footer script and paste the code.

It will work seamlessly, and moreover you don’t have to rely on another plugin for the simple task. The above screenshot is from popular Genesis theme framework.

Option 3: Using Google Analytics for WordPress plugin

There are many plugins which are available in WordPress Plugin repo to add Google Analytics to your WordPress blog, but Google Analytics plugin by Monsterinsights is the most popular one. All you need to do is to install GA for WordPress plugin from official repo (plugin link)  or you can get the pro version that adds advanced features.

Once you have activated the plugin, you will see a popup asking to allow or disallow tracking, which I prefer to select “Do not allow tracking.”

Go to Settings > Google Analytics to configure the plugin and click on click here to authenticate with Google or you can also select manually enter the UA code.

Click on save settings, and you have successfully configured the plugin. If you want to see Google Analytics data in your dashboard Click on Insights > Dashboard

Of all the three options, I recommend Google tag manager option as it will make your life easier in the longer run. If you are an experienced blogger & need more data like which category is most popular. Which authors are driving most page views then I suggest you use MonsterInsights plugin.  Here are essential GA tutorials for bloggers to move ahead in the series:

  • Custom Google Analytics dashboard to get more out of it
  • How to find blog top landing page using Google analytics

Don’t forget to share this tutorial with your friends on Google Plus and Facebook.

 

One thought on “How To Add Google Analytics To WordPress Blog

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

error

Enjoy this blog? Please spread the word :)

RSS1k
Follow by Email1k
Facebook9k
Facebook
YouTube2k
YouTube
Pinterest2k
Pinterest
Instagram3k
LinkedIn2k