How to add Google Analytics to a website

How to add google analytics to website

Google Analytics can be a very useful tool for any business. Its free, it’s easy to set up and it’s easy to use. Once you have Google analytics setup on your website it can provide you with very useful data that you can use to help grow your business. This data can give insight into how people are finding you online and what people are looking for on your website. It can tell you the location visitors are accessing your website from, their age, gender, the device they are using and many other elements.

In this post I will show you how to add google analytics to your website.

 

Steps

  1. Go to https://www.analytics.google.com

 

  1. You will be presented with the following log on screen

How to add google analytics to website-image001

If you already have a google account (gmail account) use it to log in otherwise click the create account link.

 

  1. Once you have signed in to your Google account, click Access Google Analytics.

 

  1. Click Sign up.

 

  1. Fill in your Account Name, Website Name, Website URL, and select an Industry Category and Reporting Time Zone.

 

  1. Under Data Sharing Options, check the boxes next to the options that you want.

 

  1. Click Get Tracking ID.

 

  1. From the Google Analytics Terms of Service Agreement that opens, click I Accept.

 

  1. Once you are logged in to the dashboard, look to the left of the screen and click on the admin icon.

 

How to add google analytics to website-image002

  1. Once you are in the admin area look for the Tracking info link and click on it.

 

How to add google analytics to website-image003

 

  1. Then click on tracking code.

 

How to add google analytics to website-image004

 

  1. You should see a section similar to the image below

How to add google analytics to website-image005

 

  1. The code you see here will need to be added to the head section of your website.

 

  1. Copy the code in the box.

 

How to add google analytics to website-image007

 

  1. Now you need to go to your website and inset this code.

 

  1. The WebMe website is built using WordPress and the theme we use provides an area to add code to the head of our website. If your site is built using WordPress or some other CMS your theme may offer something similar. Whatever way you add this code to your website, it needs to be in the head of each page that you want to collect data from.

 

  1. To add this code to the WebMe website I log into the WordPress dashboard and go to Appearances > Customise

How to add google analytics to website-image008

 

  1. From there I click the code link.

 

How to add google analytics to website-image009

 

  1. Then I click the Head Code link.

 

How to add google analytics to website-image010

 

  1. I am then presented with an area to paste code. Any code inserted here will be added to the head of each page on the website.

 

How to add google analytics to website-image011

 

  1. This is where I past my Google Analytics code.

 

How to add google analytics to website-image012

 

  1. The code is now added to my website so I can now go back to the Google Analytics dashboard and click the home Icon in the left menu.

 

How to add google analytics to website-image013

 

  1. The dashboard will probably show 0 users which is normal.

 

How to add google analytics to website-image014

 

It can take up to 24 hours for data to populate so check back again tomorrow. If when you check again it is still saying 0, then browse to the home page of your website and then check your dashboard. The active users right now section should say 1. If it does, then you know google analytics is working on your site.

 

  1. That’s it. You should now be able to view traffic data for your website. Leave a comment below if you found this helpful or if you need someone to implement Google Analytics on your website then we would be happy to help out.

 

2 Comments

  1. Jospeh on February 1, 2019 at 4:49 pm

    Would you not send test traffic to the site? Surely that would prove in the real time section that you’ve installed it correctly

    • Peter on February 4, 2019 at 9:24 pm

      Hi Joseph,
      Yes, you could try that but sometimes it does not display any data for the first 12 to 24 hours. If you check aback after 24 hours,send traffic to the site and there still is no data then you know for sure that you have an issue.

Leave a Comment





GET IN TOUCH!

Please enter your name.
Please enter a valid phone number.
Please enter a message.

WebMe,

Killriffith,

Nenagh,

Co. Tipperary.

E45 K259

Sarah: +353 85 1715479

Office: +353 67 42443

hello@webme.ie