How to Install Google Analytics in WordPress

written by shaylusive January 26, 2017
How to Install Google Analytics in WordPress

Knowing how your audience interacts with your website is crucial for your marketing and promotional success. The best way to know your audience is through your website traffic stats and this can be found via Google Analytics for FREE. In this post, I will share why Google Analytics is important, and how you can install Google Analytics in your WordPress based website/blog.

Why is Google Analytics Important?

Google analytics allows you to keep track of:

Who visits your site, what they do when they are on your website, when they visit your website, where did they arrive on your website from, & how they interact with your site’s content.

How to signup with Google Analytics

Step 1: First you will need to create a Google Analytics account. To do this, visit Google Analytics Signup Page. If you already have a Gmail account, then use that to sign-in with, if not, then you will need to create an account for yourself.

Step 2: Once you sign-in, you will be prompted to a screen like the one below. This is where you signup for Google analytics with your Gmail account.

Step 3: On the next screen you will be given a choice to choose between website or mobile app. Make sure website is selected. You can choose either the Universal Analytics option or the Classic Analytics option.

You will then need to fill out the rest of the information required, its all pretty self explanatory.

Once you’ve entered all the information click on the Get Tracking ID button. You will need to agree to Google Analytics terms and service first.

Step 4: Copy the tracking code because you will need to enter it in your WordPress site. Leave the browser open as you will need to revisit it, once you have installed the code on your WordPress site.

How to Install Google Analytics in WordPress

There are loads of plugins available to add Google Analytics to your site. However, it is super easy to use a simple light-weight plugin like:


Once you have downloaded the plugin, compress it to a .zip file.

Next, upload the plugin to your WordPress site, activate the plugin, go to the settings and paste your unique tracking ID in both the Header & Footer scripts. Then hit save. Your website stats should now begin tracking via Google Analytics. To check everything is working nicely, you need to go back into your Google Analytics browser. Under the Admin tab, go to tracking info; tracking code, and then click “send test traffic” (the button under Status). Your website should pop up in a little box, and the Status should refresh to show 1 active user. What you can also do at this point, is use your mobile phone to go onto your website, and then you will see the active users go up to 2.

After 12-24 hours, you can check out your website stats, from the Reporting tab.

Note: This is only for self-hosted blogs. Free sites cannot use Google Analytics. Maybe its time for you to upgrade from free to self hosted WordPress?





You may also like

Leave a Comment