AdWords
2K members online now
2K 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
star_border
Reply

Event Tracking In Universal Analytics

Follower ✭ ✭ ☆
# 1
Follower ✭ ✭ ☆

Hi,

 

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!

 

Thanks,

Kundan

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
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.

View solution in original post

Marked as Best Answer.
Solution
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 ..no code to set up ! http://cutroni.com/blog/2013/10/07/auto-event-tracking-with-google-tag-manager/