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 analytics.google.com 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.
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
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 emercarr.com)
- Cookie Law info - (in use on itsallaboutliving.ie)
- 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.
Example from Cookie Notice
Note: For Cookie Notice, all other values should be OK at default values.
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.
Example of mine:
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.