Created
October 31, 2009 05:14
-
-
Save Suhail/222920 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
<!-- First include the script: --> | |
<script type="text/javascript"> | |
var mp_protocol = (("https:" == document.location.protocol) ? "https://" : "http://"); | |
document.write(unescape("%3Cscript src='" + mp_protocol + "api.mixpanel.com/site_media/js/api/mixpanel.js' | |
type='text/javascript'%3E%3C/script%3E")); | |
</script> | |
<!-- Initialize it with your project token --> | |
<script type="text/javascript"> | |
try { var mpmetrics = MixpanelLib("YOUR_TOKEN");} catch(err) {} | |
</script> | |
<!-- Then make calls to our API as shown below: --> | |
<script type="text/javascript"> | |
mpmetrics.track('click-menu', {'gender':'male', 'button':'about'}); | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment