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" src="http://api.mixpanel.com/site_media/js/api/mixpanel.js"></script> | |
<script type="text/javascript"> | |
try { | |
var mpmetrics = new MixpanelLib("YOUR TOKEN"); | |
} catch(err) { | |
null_fn = function () {}; | |
var mpmetrics = { track: null_fn, track_funnel: null_fn, register: null_fn, register_once: null_fn }; | |
} | |
</script> | |
... |
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
<!-- 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 = new MixpanelLib("YOUR_TOKEN"); |