4.8K members online now
4.8K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me

Event Tracking In Universal Analytics

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆



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>


Now: ??


Please help!




1 Expert replyverified_user
Marked as Best Answer.
Accepted by Dave_Davis (Top Contributor)
September 2015

Re: Event Tracking In Universal Analytics

[ Edited ]
Top Contributor
# 2
Top Contributor

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.

Re: Event Tracking In Universal Analytics

Follower ✭ ☆ ☆
# 3
Follower ✭ ☆ ☆
The best way is to use the google tag manager code to set up !