Want to add Google Analytics to your website?
Confused about how to do it?
Then follow our step-by-step guide, designed to help you set up Google Analytics using the Google Tag Manager method.
A data measurement tool used to gather website visitors’ insight – it also monitors their behaviour, so you’re able to see which pages of your website they spend the most time on. By using this tool, you can gain a better understanding of the amount of traffic you’re getting to your website, and what you can do to keep that figure rising.
Google Tag Manager – What is it?
Benefits of using Google Analytics
– You can monitor which areas of your website are getting the most attention – this means that you know what grabs the attention of your target audience.
– Allows you to effectively plan ahead and provide your audience with content they are interested in.
– A free-to-use tool, Google Analytics can be used to create customised reports – allowing you to understand the strengths and weaknesses of your site.
Benefits of using the Google Tag Manager Method
– By using GTM, you are able to easily add new tags – helping to save time.
– You don’t have to write code to use GTM
– It’s free to use and has a built-in debug feature.
– You have control over who has access to your accounts – this is something that you are able to change at any time.
– GTM has triggers for common actions – meaning the software is suited to you.
1. Go to https://analytics.google.com/
2. Log into your Google Account
3. Set up a Google Analytics Account
4. Fill in information about your website
a. What you want to track – Website
b. Account Name
i. If you intend to manage multiple websites under your account, choose a name which applies to all the websites.
ii. If you have only one website, you could use the name of your website or your business.
c. Website Name
i. Enter a name which is directly linked to the website that is going to
be tracked – you could even use the website’s URL.
d. Website URL
i. Select the right protocol for your website (http: // or https://)
ii. If you aren’t sure which protocol your website has, then type your website URL into Google Chrome, using “https://”
1. Green Padlock before URL – Select “https://”
2. Red Padlock
a Not Secure Message – select “http://”
e. Industry Category (optional field)
i. Select your industry from the dropdown menu
1. This won’t have a direct effect on your website tracking – Google uses this information to help them improve Google Analytics.
f. Reporting Time Zone
i. Select the Time Zone – this should be the time zone where most of your visitors are located.
5. Scroll down to the bottom and click: “Get Tracking ID”
6. Read and accept the Terms & Conditions
7. You will now be sent to the Google Analytics settings, and shown a help message – click “Okay, got it!” to proceed
8. Take note of your Google Analytics tracking ID – code will start with: “UA-”.
Setting up Google Analytics using Google Tag Manager
1. Go to http://tagmanager.google.com and sign in
2. Select the container you set up on your website
3. Go to “Tags”
4. Click on “New” – rename your tag.
a. Recommendation – mention Google Analytics in the title, it makes it easier to locate the tags you’re looking for in the future.
5. Click on the “Tag Configuration” section
a. Choose “Universal Analytics”
6. Create a “Variable” – this is where the Google Analytics Tracking ID is stored. Click on “Google Analytics Settings” selection box, and select “New Variable”
a. Copy the Google Analytics Tracking ID
b. Rename the variable (do this by clicking the text on the top – give it an easily identifiable name that shows what the variable is).
c. Click “Save”
d. You will be taken back to the previous menu.
7. Setting up a “Trigger” for this “Tag”
a. Click on the “Triggering” section; when the menu opens, select “All pages”.
8. Click “Save” – your settings are now saved.
9. Choose “Overview” from the sidebar
This is what you’re Google Tag Manager overview dashboard should look like.
10. If you are happy with the results, click “Submit”.
11. Submission Configuration panel – when this appears, you have the option of adding a name and description to this version – you can then click “Publish”.
a. Recommendation – By adding a name and description it can be easier to see what changes are being made.
12. Summary of changes – you can now see an overview of the changes you made.
Verify your Google Tag Assistant setup
1. Start on the homepage of your website
2. Click the Tag Assistant Icon – you will be able to see it on your browser
3. You will be able to see a Tag named: “Google Analytics” – beneath this, you will see your Analytics Tracking ID.
4. You will need to repeat this process for several of your web pages – whenever you are using Google Tag Assistant, you should be able to see the “Google Analytics” tag.
To complete this step, you will need to be using the Google Tag Assistant extension from Google Chrome – this will need to be installed on your browser.
Verifying your Google Analytics setup
1. Open Google Analytics
2. You will start on the homepage
3. Close the pop-up; then click “Real-time Report”
4. Using another tab or window, open your website URL
5. Click on the Google Analytics tab and wait
6. You should see it says you have (at least) 1 active user.
Having just created your account, you may notice that there is one view named “All Website Data”. If you are considering adding some customisation to your Google Analytics properties.
Creating additional views:
1. Main View – Where you will be doing your analysis – all customisations to Google
Analytics should have already been tested in the Staging View – this is so data is
a. This view will have all the filters properly applied.
2. Staging View – Google Analytics’ sandbox – If you’re looking to test something new, but aren’t sure what impact that this could have on your data (i.e. creating a new filter) – then this is the view that you need to use. You can then leave it for a few days before implementing changes on the Master View – that way you are aware of the effects the changes have.
3. Unfiltered View – No customisation will be used on this view.
a. This will always have all of your data.
By using the outlined structure above, you will always have a way of recovering any lost data in the event that something goes wrong.
1. Go to your Google Analytics Admin page
2. Select the relevant account and property
3. Under “View” – click on the dropdown box and choose “Create a new view”
4. Insert the view details
a. Important – “Reporting Time Zone” needs to be the same as what you selected for other views
5. Move onto creating the Staging View – select the “All Website Data” from the dropdown. Click on “View Settings”
6. Click “Copy View”
7. “New View Name” field – type “Staging View”; click “Copy View”
8. It should now say you have 3 views.
9. Rename the original view – to do this, select the “All Website Data” view.
10. Click “View Settings” – then rename the view name that is going to be your “Main View” – click “Save”
11. Your first three views should now be visible.
Congratulations! You just added Google Analytics to your site using GTM.
Google Analytics will now proceed to gather your website’s data; after a few hours, you will be able to view your website’s reports.
If you found this tutorial useful, then check us out on social media – More blogs coming
Get in touch!
The Old Pumping Station,
Great Northern Terrace,