Can I track an a href link as a trackEvent?

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 ?

Should work this way.