Skip to content

Instantly share code, notes, and snippets.

@kylerush
Last active December 23, 2018 18:12
Show Gist options
  • Save kylerush/5955920 to your computer and use it in GitHub Desktop.
Save kylerush/5955920 to your computer and use it in GitHub Desktop.
Google Analytics custom event example to reduce user frustration.
_gaq.push(['_trackEvent', 'Donate error', 'field validation error', 'email']);
_gaq.push(['_trackEvent', 'Ajax response time', 'donate submission', timeString]);
_gaq.push(['_trackEvent', 'Donate error', 'has errors', erroCount]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment