Tracking Events

You can track certain events, such as when someone clicks on a link on your website, by adding in a small piece of code on the page.

Please note: This is an advanced feature and a normal site report won't show you this information. Advanced users who would like to set up this tracking will also need to contact the Web & Digital Team to set up an event tracking report for your website.

The good news is that you now no longer need to setup tracking code on your pages! We have setup 'auto analytics' and are able to track clicks on links within the page based on the text that is linked and the title or file type that's linked to. To ensure you get the most out of the tracking code, please ensure you do the following:

  • name your documents appropriately
  • link on meaningful words not 'click here' or 'download'
  • use appropriate element id's (this is done via the code) on things such as accordions, tabs and quicklinks
  • use appropriate alt tags and titles if you're using them

Contact us if you need help to make sure that your tracking code will work properly.

If you have access to a profile setup for your website in Google Analytics you can view the events being captured by going to:

  • Google Analytics dashboard > real-time > events, or
  • Google Analytics dashboard > Behaviour > Events > Overview

and looking at the Event Label.

The following identifiers are used in the linear order in which they are listed :

  • # ( element id)
  • % ( title of element )
  • = ( text inside element )
  • $ ( first image with an alt tag that is a child of the element )
  • . ( class name(s) of the element)
  • ... ( the path (parents of the element until a suitable identifier is found) )

Events are grouped into categories. The following categories and the related actions are currently described:

  • link
  • click:host-external
  • click:host-internal
  • ui-link ( a tags that aren't links to pages)
  • click:page-ui
  • ui-page-link ( a tags that link to content on the page ( ids ) )
  • button
  • ui-form-textarea
  • ui-form-text
  • ui-form-checkbox
  • ui-form-submit
  • ui-form-radio-button