Can I track an a href link as a trackEvent?


#1

Will something like this work?

<a href="/about" onClick="_paq.push(['trackEvent', 'button', 'about']);">About Page</a>

Or would I need to take off the href and call window.location in a function after calling _paq ?


(Fabian Dellwing) #2

Should work this way.