Created
August 3, 2015 16:32
-
-
Save jfelipe/3468e98e7c7aff17781f to your computer and use it in GitHub Desktop.
This file contains hidden or 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"> | |
$(document).ready(function() { | |
try { | |
mixpanel.track("Landing Visit", { location: location.pathname }); | |
$("#sign-up-menu-button").click(function(){ | |
mixpanel.people.set({"Signup button": "navbar header"}); | |
mixpanel.track("Click signup button", {"Button location": "navbar header"}); | |
return true; | |
}); | |
$(".sign-in-buttom").click(function(){ | |
mixpanel.people.set({"Signup button": $(this).data('location')}); | |
mixpanel.track("Click signup button", {"Button location": $(this).data('location') }); | |
return true; | |
}); | |
$(".select-plan-button").click(function(){ | |
mixpanel.people.set({"Signup button": "Select plan"}); | |
mixpanel.track("Click signup button", {"Button location": "Select plan", plan: $(this).data('plan') }); | |
return true; | |
}); | |
} catch(err) {}; | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment