I’m very excited right now guys. I just set up an event tracking script on one of my sites, and this is a major upgrade of my analytics arsenal.

Event tracking is a way for you to know how did visitors interact with your site. You can see how many times a file’s been downloaded, a button pressed or a document opened. No more guesswork.

I knew it was available with third-party providers, such as Crazy Egg, which btw does a whole lot more than that, but now event tracking is on my fingertips at the good old Google Analytics.

The setup is fairly easy and I will give you a plain-english overview of setting this up. Let’s assume you have all sorts of buttons on your page and you want to track which ones were pressed. Those could be download buttons, link buttons, whatever.

First, you need to add this line to your Google Analytics code:

var mapEventTracker = pageTracker._createEventTracker(’Buttons’);

Then, on each button’s link, (after or before the href=”www.yourlink.com”) you add the following:

onClick="pageTracker._trackEvent('Buttons', 'Download', 'Name of one of the Files');"

When you do this, GA will record the events and display statistics in GA --> Content --> Event Tracking.

You might want to consult Google's guide to have full control and flexibility with this. But, if you just put everything the way I described you should have a basic event tracking setup.

So, here you go. Just an exciting quickie.

- Alex