Skip to main content

How do I add an onClick funtion to a link that I want to track in Google Analytics?

Example:

onClick="_gaq.push(['_trackEvent', 'External Links', 'Click', 'NationBuilder.com']);"

Official response from

It's possible to add the necessary code for Google Analytics’ Event Tracking by manually coding it into your theme and/or page-level templates

Share this post

Showing 4 reactions

Please check your e-mail for a link to activate your account.