Skip to content

Instantly share code, notes, and snippets.

@jeremyyeo
Last active August 29, 2015 14:24
Show Gist options
  • Save jeremyyeo/d0542b1235100292da8f to your computer and use it in GitHub Desktop.
Save jeremyyeo/d0542b1235100292da8f to your computer and use it in GitHub Desktop.
Google Universal Analytics Event Tracking Example
<a href="http://www.cmee.co.nz/blog" onClick="ga('send', 'event', 'Contact Form', 'Submit');">Submit Button</a>
// Be sure to add event tracking with category = Contact Form and action = Submit on Google Analytics itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment