Setting Up Google Analytics on a WordPress Website

How To Set up Google Analytics and install your WordPress Website

1. Setting up your Website on Google Analytics

Steps 1 to 6 of this section 1 are the same for everyone, even if you don't have a WordPress website

Step 1: Sign up/Log in to using your Google account.

Note: This should be an email you use regularly and doesn't have to your business email. 

Step 2: If you are a new user, you need to set up your Account first, simply use your name or your Business name.

Step 3: Next, you set up a Property ie. your website under this account. 

  • Enter a Website name just to distinguish it for any additional websites you might add in the future and the URL for your website. Be careful if you are using http or https, select accordingly. Most basic websites are http, https for payment websites.

Step 4: Next select the Category which best represents your business.

Step 5: Change the Reporting Zone to the country of your business. 

Step 6: Scroll to the bottom and hit Get Tracking ID.

Note: You can copy the tracking ID here or you can find it any time under the ADMIN tab at the top of the page. For the WordPress plugin I am going to show you, you don't even need to copy it but other websites, you will need to copy the tracking code onto each page of you website that you want to track. Details below on how to find your tracking code at a later stage too.


2. Easiest way to Add your Tracking Code to a WordPress Website

Before you start: Make sure you are logged into the same Google account you used for the Google Analytics setup.

Step 1: Log into your wordpress website and go down to Plugins on Left Menu

Step 2: Select Add New, either from the Left Menu or top of the Plugins page, makes no difference.

Step 3: On far top right, type in Google Analytics by MonsterInsights into the Search Plugins search box and select install.

Step 4: When it is installed, hit Activate.

insightsStep 5: When the plugin is installed, you will see a new Insights icon on the bottom left corner of your screen on the WordPress menu bar.



Step 6: Click on this Insights icon and you should get the message in the middle of your screen (alternatively select Settings).



Step 7: Click on re-authenticate your Google Analytics profile here


Step 8: Click Allow on the Request Permission pop that appears (remember, you must be logged into the same Google account as Google Analytics)

Step 9: Copy the code that is displayed (simply click on the code once, it should highlight blue (repeat if it isn’t highlighted), then click right to copy (or CTRL + C).

Step 10: Go back to the browser and you will see a box to paste in your code, click in the box and click right (or CTRL+ V).

Step 11: From the General Settings, select your website for the Analytics Profile from the dropdown menu.

Step 12: Hit save and THAT’S IT! It is all set up. Just one more thing, to finish this off nicely. It is a EU legal requirement on websites to notify visitors your website collects data so you need to add a cookie notification. Jump to Section 4 below to find out how to add one.

You can return to the Dashboard under the Insights icon on the left menu to see your data. I would also suggest looking at your Reports on Google Analytics too. They are in far more depth then the plugin but it will give you a clear overview too.

3. How to find your Tracking Code after your website has been added?

Step 1: Go back to your Google Analytics account. 

Step 2: Under ADMIN tab, select the Account you want, then the Property (ie website).

Step 3: Under the Property, click on Tracking Info > Tracking Code

It is a legal requirement on websites to notify visitors your website collects data so you need to add a cookie notification. Check the requirements in Section 4 for WordPress websites to help you add one to other types.

4. Setting up Cookie Acceptance Notification on your WordPress Website

WordPress is great and yes there is another plugin to solve this for you. First though, we need to set up a Privacy Policy page. If you don't know what a Privacy Policy involves, check the link to the Irish Data Protection website for further info. If you are based outside of Ireland, Google data protection privacy policy <your country> to find out the information relevant for you.

Here is an example of Privacy Policy taken from the Law Society of Ireland. You can google 'privacy policy template' to find one to suit your needs.

Step 1: Create a page, call it Privacy Policy (or something similar) and add relevant text based on the requirements of your country. This page will only appear via the cookie acceptance notification and in the footer of your website, not under a menu (unless you want to of course! This is the standard way).

Step 2: Go to the Plugins Section of your WordPress dashboard (left menu) and at the top, click on Add New.

Step 3: Search for 'Cookie' in right search box. Here are some that have been ranked highly in reviews at the time of this blog but this can change. I always suggest, only select a plugin compatible with the latest version of WordPress (provided you are using the latest version which you should be) then look at Read More on any plugin and check latest reviews, Installation, support. This always give a clear view to me how easy a plugin is to use. 

  • Cookie Notice - dFactory (in use on
  • Cookie Law info - (in use on
  • EU Cookie Law - easy to use but I didn't like the display on my theme but this can still work for you.

Step 4: Install and Activate the Cookie plugin of choice. They usually appear under Settings on the bottom right or as an option on their own.

Step 5: Link the Plugin to your Privacy Policy in the 'Read More' Section by adding the Privacy Policy page to Read More either by selecting in Dropdown or adding the link depending on the plugin.

Example from Cookie Notice 

Cookie Plugin Add Privacy Policy




Note: For Cookie Notice, all other values should be OK at default values.

Step 6 (Optional): Finally you want to add your Privacy Policy to the Footer (this usual place but you can decide yourself) of your website. To do this, go back to your Dashboard, go to Manage Widgets on top right and click on Widgets.

Manage Widgets





Step 7: There are several ways to add links to the Footers based on your theme but this is a generic way for all themes.

<a href="insert your link here to privacy policy and keep the double quotes">Privacy Policy Test</a>

Example of mine:

<a href="">Privacy Policy Test</a>

Save and that is it. You should see this at the bottom of all your web pages. If not, hit F5 on your keyboard to reload the page.

Hope the help! Please let me know in the comments below.

Getting to Grips with Google Analytics – From the Ground Up

Understanding Google Analytics

When you are starting out there is so much confusion and trying to understand what is what, it can seem like digging into bottomless black hole trying to get the right information to get you started.

So here, I will give clear steps for WordPress users how to set up your Google Analytics code on your website in 4 easy and clear steps. For all websites, setting up your website for Google Analytics is the same but how you add to your website will be different which I will cover in another blog. So let's begin......
Q: What on earth are Google Analytics?

Google Analytics is a free tool from Google found at where you use your gmail email to sign in and add your website. This will track and help you to analyse all the visitors to your website. From this you will be able to determine better marketing strategies for your business. Kinda cool, eh!

There are numerous free tools by Google to help your website perform better. Google Analytics is purely to analyse people coming to your website and where they come from plus LOADS of data such as demographics, location, interests and behaviour plus loads more. It's purpose it to help your marketing, NOT your SEO. OK Emer, STOP, what's SEO? Don't confuse me already!

Q: OK so what is SEO?

SEO is Search Engine Optimization and relates to how your website will rank on a search by someone, ie. they go to Google (or another search engine but Google is King, let's face it) and type in something they want, hey presto the list of choices of websites appear. First website is ranked #1 based on the search. If what they are looking for is relevant to your business, well if your website is ranking well it will appear close to the top. If not, it will be buried below lots of other websites that they can choose from. There are simple rules for SEO but ultimately in my opinion, you need to have amazing content on your website for your customers, first and foremost. Content is King also! Ok I hope that gives you a quick idea of SEO but right now we are talking Google Analytics which has nothing to do with SEO. Google Analytics is a tool to help you understand where visitors to your website.

Q: So what is the fuss about Google Analytics?

Using the reports in Google Analytic, you can see tends of where your visitors are coming from and are coming from along with other very interesting data from Demographics to Interests/Behaviours bu also where your traffic is coming from regarding your social media. You could be surprised (because I have seen it happen) where you thought your target audience was can give a very different view to who actually visits your website.