Created
April 26, 2016 10:21
-
-
Save ceaksan/847f0f6846e68fa3ac8dbcc7c895c333 to your computer and use it in GitHub Desktop.
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
jQuery(document).ready(function() { | |
jQuery(':input').blur(function () { | |
var formName = {{FORM NAME}}; // Change {{FORM NAME}} | |
if(jQuery(this).val().length > 0) { | |
_gaq.push(['_trackEvent', formName, 'Completed', jQuery(this).attr('name')]); | |
} | |
else { | |
_gaq.push(['_trackEvent', formName, 'Canceled', jQuery(this).attr('name')]); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment