Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm trying to implement dynamic events in my platform to trackearlos.

My question is:

For generating these events and who are trackeados in Google Analytics to put the push of the "onclick" to do something else?

I put this in my links:

<a href="#" onClick="_gaq.push(['_trackEvent', 'Videos', 'Play', 'Baby\'s First Birthday']);">Play</a>  

That alone should of tracked at me in Google Analytics. I'm in the category VIDEOS PLAY action is and the name is BABY'S FIRST BIRTHDAY not?

Or do I have to do something else?

The idea is that it will automatically put those goals in google analytics or do I need from Google Analytics in panel enlist hand sequence each event / goal?

share|improve this question
1  
Yes, providing you have the _gaq array set up in your code then that should work. If you use Firefox install OmniBug - that will allow you to see the requests you make to Google re. Analytics. –  crmpicco Dec 10 '13 at 16:21
    
Yeah Thanks! ;) –  cbeneyto Dec 10 '13 at 18:56
    
@cbeneyto If you find the solution please post it as Answer so that other users can know the correct answer :-) –  Sathiya Kumar Dec 16 '13 at 13:29
add comment

migrated from stackoverflow.com Dec 16 '13 at 3:56

This question came from our site for professional and enthusiast programmers.

1 Answer

crmpicco says:

Yes, providing you have the _gaq array set up in your code then that should work. If you use Firefox install OmniBug - that will allow you to see the requests you make to Google re. Analytics.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.