Google Analytics Event Tracking

Google Analytics Event Tracking

Event Tracking is one of the coolest features of Google Analytics in my opinion. For those who are unfamiliar, Event Tracking allows you to measure any event that occurs while your visitors browse your site. All you have to do is add the following code to whatever you want to track. For instance if you wanted to track a how often a link is clicked, you would make your a tag look like this:

 

<a href=”page.php” onClick=”_gaq.push([‘_trackEvent’, ‘Category’, ‘Action’, ‘Label’]);”>click here</a>

 

For example, you could track the number of times a particular button is clicked. If a website has several call to action buttons on its landing page, it is useful to know which of the buttons are being clicked. By applying Event Tracking to each of the buttons, this metric can be easily ascertained. The data begins to appear in the Events tab in Google Analytics. The 3 values ‘Category’, ‘Action’, and ‘Label’ can be whatever keywords you want. Google Analtyics sorts and aggregates your data based on these keywords. Real power users can take it a step further create Goals based on these Events. More on that later.

Please follow and like us: