Interactive: Google Analytics Setup Training

Time remaining/total left out of 1h 30m Lessons completed/total / 11 4.2 / 5

Customize the UA parameter

Time required: 5m
Lesson URL:
Teacher: Will Critchlow

This module is all about customizing the Google Analytics code snippet that you place on your website.

Although the Google help is generally very good once you know what you are doing, it can be daunting to beginners so the idea of this guide is to walk you through basic customization all the way up to some of the more advanced concepts.

What you will learn

By the end of this module, you will have learnt how to:

  • Customize your Google Analytics code for your site
  • Add a virtual pageview
  • Track custom variables
  • Track events
  • Use the configuration API
  • Add and maintain e-commerce tracking
  • Set up basic cross-domain tracking

We are going to start at the very beginning. When you create a new Google Analytics account or profile, it provides you with some code. The absolute most important thing about the process is that you ensure you are using your unique identifier - which will be something like UA-123456789.

In the example below, replace the placeholder (UA-XXXXXXX-X) with the example code UA-1234567-8:



Small clue Big clue Show answer
Close

 Locate ‘UA-1234567-8’ in the code and replace it with the example unique identifier

Close

 Make sure the unique identifier is inside quotation marks (‘   ‘)

Not yet completed

Add a Virtual Pageview

Time required: 5m
Teacher: Will Critchlow

Track a basic custom variable

Time required: 10m
Teacher: Will Critchlow

Track a page level custom variable

Time required: 10m
Teacher: Will Critchlow

Track an event

Time required: 5m
Teacher: Will Critchlow

Use the API - setAllowAnchor

Time required: 5m
Teacher: Will Critchlow

Add basic e-commerce tracking

Time required: 15m
Teacher: Will Critchlow

Add a line item

Time required: 10m
Teacher: Will Critchlow

Add the transaction

Time required: 5m
Teacher: Will Critchlow

Add a second item

Time required: 10m
Teacher: Will Critchlow

Set up basic cross-domain tracking

Time required: 10m
Teacher: Will Critchlow