Saturday, April 4, 2015

Event Tracking in Google Analytics

Lets assume that we have a button on our website which we want to track, to check how many people clicked on that button. For this we need to set up event tracking for that button.

On my website, I have two buttons 1. LinkedIn and 2. ePortfolio.  Both have event tracking set up. Let me explain you guys how I set up event tracking for my ePortfolio button.



Event tracking needs basically three parameters which when passed, we can get a successful tracking of the event we want to track.

The three parameters are :

Category : Category is the name under which you categorize the events. Here my category is "portfolio".

Action : Action is used to define the action user takes when the event is triggered. Here my action is "view", it can be any thing which makes sense to you, for me it helps me understand that the user was on my website and then viewed my eportfolio

Label : Label is used to provide additional information about the event to help interpret the results faster. In my case it is "From website to portfolio"

So my event tracking code is :

onclick="_gaq.push(['_trackEvent', 'Portfolio', 'View', 'From Website to Portfolio'])

In real time > events you can see  that we can see the Event Category as Portfolio and Event Action as View.





















Also , the Event Label is "From Website to Portfolio"



























For a complete report of Events we need to got to Behavior > Events to see all the events generated on the website 




















References: 
Google Developers. (n.p., n.p. n.p.). Event Tracking - Web Tracking (ga.js). Retrieved from developers.google.com: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

 







No comments:

Post a Comment