Are you looking for a quick and easy tutorial on how to add Google Analytics to your WordPress blog?
Well, you’ve come to the right place.
In this post, I’m gonna show you how to, easily, install Google Analytics to your blog in under 10 minutes.
Yes, you’ve read that right. All you need is 10 minutes to add Google Analytics to your blog.
It is that fast and simple.
Don’t believe me? Well, let me prove it to you!
Pin for later!
This post may contain affiliate links, which means I may receive a commission, at no extra cost to you, if you make a purchase through a link. Please see my full disclosure for further information.
Still haven’t started your blog? Read my post on How To Start A Money-Making Blog In 5 Simple Steps to help you out!
How to set up Google Analytics
The first step you need to do is set up Google Analytics so you can add it to your blog.
To do that go to Google Analytics’ website and sign in with your Google account (if you don’t have one, now is the time to create it). Then click the grey button on the right that says “Sign up”
Then you will be taken to a new page that looks like this:
Now just fill in all the fields with your information and click the blue button at the bottom that says “Get tracking ID”.
And that is it!
Now it’s time to install Google Analytics to your website so it can start tracking your data.
How to install Google Analytics to your WordPress website
There are two ways you can connect Google Analytics to your blog
- you can add it directly to your website or
- use a plugin to do if for you
I’m gonna show you how to add it with both methods so you can decide which one you prefer.
How to install it without a plugin
To add Google Analytics directly to your blog you’re gonna have to add a tracking code to <head> of your blog.
To do this go to your Google Analytics dashboard > admin > tracking info > tracking code and copy the “Global Site Tag” code.
Now go to your WordPress dashboard and go to appearance > theme editor
From there search for “header.php” under “Theme Files”. Click on the “header.php” and paste the code after the <head> and click Update File to save your changes and that’s it.
Pros and cons of installing GA directly to your website
- if you’re familiar with coding this would, probably, be the easiest for you
- you don’t have to install another plugin to your website (plugins can slow down your website)
- if you don’t know much about coding you could mess up your theme
- the code will disappear if you update or change your them
Another thing you could do, without directly messing with your theme, is to install a header and footer plugin. And then just add the tracking code to the header section of your theme through the plugin.
How to Install Google Analytics with a plugin
The other way you can install Google Analytics to your website is to use a plugin.
To add Google Analytics with MonsterInsigths go to your WordPress dashboard > plugins > add new and enter “MonsterInsights” in the search bar. And click “Install now” and then activate it.
Now it’s time to set up MonsterInsights.
In your admin menu look for the “Insights” label and click on it to set it up.
Now, just follow all the steps to set up MonsterInsights and connect it to your Google Analytics. When you’re done just click “Finish setup and exit Wizzard” and that is it.
As you can see, installing Google Analytics with MonsterInsights is super simple and doesn’t involve any coding which makes it perfect for those who aren’t tech-savvy!
Pros and cons of installing GA with MonsterInsights
- it’s easy to set up and doesn’t require any coding
- it comes with an analytics dashboard on WordPress so you don’t have to go to Google Analytics every time you want to check your stats
- it’s a plugin so it may slow down your website a bit
What is the difference between adding it manually and using a plugin?
The main difference between installing GA to your website directly and using MonsterInsights is the analytics dashboard in WordPress.
When you install MonsterInsights you can see your website’s insights in your WordPress dashboard which makes it so easy and convenient.
Otherwise, you would have to log in to Google Analytics every time you want to check your stats.
What to do if my Google Analytics isn’t working?
Have you noticed that Google Analytics stopped tracking your website?
That probably means the code isn’t on your website anymore.
There are a number of reasons why that might happen. If you added the code manually and you changed/updated your theme the code could’ve disappeared.
Or maybe you had a GA plugin that you deleted?
To find out for sure if the code is still there just go to any page on your blog and right-click your mouse, then a drop-down menu will appear and click on the “View page source”.
You’ll be taken to a new page. To check if the code is still there just click Ctrl + F to open up a search box. In the search box enter your Tracking ID from Google Analytics (that’s the code that starts with UA-).
If it’s not on the page it means you have to add Google Analytics to your website again (using one of the methods I showed in this post).
There you have it. A complete guide on how to add Google Analytics to your WordPress website.
I told you it would be quick and easy, haven’t I?
You might like this post: “How To Use Pinterest To Drive Traffic To Your Blog”