1

Track onclick event with param:

   <input name="submit" type="button" onclick="_gaq.push([‘_trackEvent’, ‘Widget Tab’, ‘Click’, ‘Hotels’]);">Submit</input>

Does anybody knows y this code doesn't work?

I have read the docs here and I can find any.

Sean B. Durkin
  • 12,659
  • 1
  • 36
  • 65
iCeR
  • 139
  • 3
  • 15
  • Have you try this plugin? https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna – greg Dec 20 '12 at 12:49
  • The short answer is: Your form will submit before the _gaq.push is given enough time to fire the _trackEvent request. See this answer for details: http://stackoverflow.com/questions/19461293/using-jquery-for-google-analytics-event-tracking-of-form-submits/19461995#19461995 – hexalys Dec 31 '13 at 23:43

0 Answers0