Skip to content

Instantly share code, notes, and snippets.

@ttrefren
Created April 21, 2010 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ttrefren/373530 to your computer and use it in GitHub Desktop.
Save ttrefren/373530 to your computer and use it in GitHub Desktop.
<script type="text/javascript" src="http://mixpanel.com/site_media/js/api/mixpanel.js"></script>
<script type="text/javascript">
try {
var mpmetrics = new MixpanelLib("YOUR_TOKEN");
mpmetrics.set_config({ cross_subdomain_cookie: false });
mpmetrics.register({"user type": "noob", "gender": "male"});
} catch(err) {}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment