Teaching Tuesday: Tracking clicks on your website
Most people who own a website are aware or have at least heard of goals and conversions. The goal or conversion being a specific action that takes place on a website which is tracked, such as making a purchase or completing a form. However, a lot of people aren’t aware that you can track clicks on a website and set those up as goals. For example, if you have an email address at the bottom of your website you might want to know how many people have clicked on said email address. Google Analytics has this functionality available and it’s our opinion that it’s heavily under utilised. Today we’re going to show you how to track clicks on your website with Google Analytics.
The first thing we need to do is create a goal almost as we usually do:
- Log into your Google Analytics account.
- Navigate to Goals under the “Admin” tab.
- Click on “+ New Goal”.
- From the Goal setup choose “Custom” and click “Continue”.
- Give the goal a name such as “Email click”.
- Choose “Event” for “Type” and click “Continue”.
- Enter in a “Category”, “Action” and “Label” as per the screenshot example below. (further reading)
- Click the “Save” button.
That’s the easy part, now Google Analytics knows that you want to track a click, but it doesn’t know which click exactly. This is where things get a bit more complicated and a basic level of programming is required or access to a web designer who can do the implementation for you. Once you’re at this point, you need to add some code to the link in your website’s HTML code that makes the email address at the bottom of your website clickable.
The code looks as follows:
It is the onclick code that triggers Google Analytics when someone clicks on the email address and when they do, the click will appear in Google Analytics where your goals/conversions usually do.
There are more advanced ways of collecting clicks and seeing them under the Events area of Google Analytics but for the sake of this tutorial we’re going to just stick to the simpler implementation. It’s really important that you track these clicks and not only enquiry form completions because a lot of people dislike filling out forms and would rather click on an email address and if we aren’t tracking the clicks we won’t know how many people have captured our email address and more importantly, we won’t be able to see which marketing channels are performing (or at least not accurately).
If you have any questions please pop us a comment in the comments section below!