Created
July 19, 2013 14:15
-
-
Save jimjh/6039414 to your computer and use it in GitHub Desktop.
Event tracking with Google Analytics and LaunchRock.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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