News and insights • Posted on 16 November 2015

How to measure results using Event Tracking

It’s all well and good designing, developing and marketing a website, but without knowing exactly how the website performs you’re probably not getting the best possible return… That’s where Google’s event tracking comes in.

When driving traffic to a website we’re able to track all sorts of useful metrics with Google Analytics, which gives us an insight into where a visitor’s come from, how long they spent on the site, which pages they’ve visited and most importantly if they convert into a lead or sale!

Event tracking allows you to track the performance of specific elements of a site and analyse data that you wouldn’t normally be able to see when using Google’s Analytics default metrics. For example:

  • Button Clicks

  • Call to action usage

  • Downloads

  • Video plays

  • Advert clicks

  • Image gallery usage

  • Slider usage

  • Many, many more…

You’d think such a useful feature would be difficult or time consuming to implement but event tracking is very easy to setup and will start tracking events instantly.

Here’s the code we recently used to track how frequently visitors interacted with a ‘contact us’ call to action, which displayed on every page of the website.

‘onclick=”ga(‘click’, ‘button’, ‘cta’, ‘contact_us’);”

The code is fairly self-explanatory: We wanted to track a ‘click’ on a ‘button’ which was a ‘cta’ called ‘contact_us’

Simply rename the attributes to track a different element of the site. For example here’s how we’d rename the code to measure when a visitor plays a video on the about us page:

‘onclick=”ga(‘click’, ‘button’, ‘about_us’, ‘video’, play’);”

Finally, you need to add the event tracking code to the element you want to track on your site. For example, here’s how we’d add the code to a ‘contact us’ call to action button, which links to a ‘contact us’ page.

<a href= ‘onclick=”ga(‘click’, ‘button’, ‘cta’, ‘contact_us’);”>

That’s it! Events will start tracking as soon as you’ve implemented the code on your site.

To view the data you’ve tracked in Google Analytics go to > Behaviour > Events > Overview

If you’d like to know more about how we use event tracking to optimise our client’s websites to improve performance and generate results, call us for a chat. And yes, we’re tracking that.

If you want to keep up to date with the crew, don't forget to sign up to our newsletter to benefit from digital marketing expertise, as well as exciting opportunities to improve your business' performance.

Back to the news hub

Written by Amy Taylor

Digital marketing executive Amy is both highly analytical and refreshingly creative - a combination that means she’s ideally placed to strategise and implement effective digital marketing campaigns.

News and insights

We’re officially a Great Place To Work!

What makes The Bigger Boat a Great Place To Work? Lots of things, it turns out! Take a look at our top-scoring statements and what our employees had to say.

Read more
News and insights

Insights from below deck: March 2024

Content that ‘takes pressure off’, social media consumer secrets, and 2023’s most successful digital PR campaigns are some topics that got the team talking this month.

Read more
View more in the hub

Ready to start your next big project?

Let's talk


The Bigger Boat
Suite 7, The Watermill
Wheatley Park
Mirfield, West Yorkshire
WF14 8HE

Talk to us