Event Tracking In Universal Analytics
I need to track events (Click on a button) but recently I have migrated analytics to the new 'Universal Analytics'and henceforth my events are not getting tracked. Could any here please help me understand the modifications in the event tracking snippet.
Earlier: <a href="#" onClick="_gaq.push(['_trackEvent', 'Apply Now', 'Click', 'MBA Course']);">Start Your Application Process</a>
Re: Event Tracking In Universal Analytics[ Edited ]
December 2013 - last edited December 2013
Hi Kundan, event tracking is completely different in UA. To send an event, you pass the ga function the send command with the event hit type.
For example: ga('send', 'event', 'category', 'action', 'label');
e.g, ga('send', 'event', 'button', 'click', 'nav buttons');
_gaq.push is no longer used.