Skip to content

Instantly share code, notes, and snippets.

@jimjh
Created July 19, 2013 14:15
Show Gist options
  • Save jimjh/6039414 to your computer and use it in GitHub Desktop.
Save jimjh/6039414 to your computer and use it in GitHub Desktop.
Event tracking with Google Analytics and LaunchRock.
function conversion(){
var tracker = _gat._createTracker('UA-XXXXXXX-X');
tracker._trackEvent('Users', 'Sign Up');
}
$('.LR-sign-up-submit').click(conversion);
$('.LR-sign-up-input').keypress(function(c) {
(13 == c.which) && conversion();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment