Created
October 31, 2014 10:40
-
-
Save dpnova/d2bb454c95ed5ef17ac3 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
<script type="text/javascript"> | |
$(function(){ | |
var timeout = 10000; | |
analytics.ready(function() { | |
analytics._timeout = timeout; | |
}) | |
analytics.trackForm($('.email-submit'), "Email Signup", { | |
"landing_page": "first" | |
}); | |
$(".email-submit").on("submit", function(e){ | |
window.analytics.identify( | |
{email: $(this).find('input[name=email]').val()} | |
); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment