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=http://www.test-website.com/contact-us/ ‘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

PPC and tracking manager Amy is a highly analytical and results-driven strategist with a sharp eye for detail and a passion for precision. Having led some of our highest-performing PPC campaigns, she knows exactly what it takes to motivate clicks – leveraging her deep understanding of user behaviour to optimise ads for maximum impact, and accurately measure digital marketing success.

News and insights

The tell-tale signs you need to go back to brand

Rebranding is an important decision, but how do you know if it’s needed? Explore the signs to see if your business is ready for a more aligned brand identity.

Read more
News and insights

Why SEO strategy should shape your website, not follow it

When SEO underpins your site build, it forms a strategic structure that ranks from day one. Start strong, with our best SEO strategy for new website success.

Read more
View more in the hub

Ready to start your next big project?

Let's talk
Great place to work logo

Contact

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

Talk to us

Registered Company No 7103268. VAT No 985 1811 91