Skip to content

Instantly share code, notes, and snippets.

@kohiomobz
Created August 24, 2015 13:18
Show Gist options
  • Save kohiomobz/29d80f1104cbcbbeb3d6 to your computer and use it in GitHub Desktop.
Save kohiomobz/29d80f1104cbcbbeb3d6 to your computer and use it in GitHub Desktop.
/* After Loading the Snippet */
/* You can namespace each instance of the Mixpanel JavaScript Library */
/* First Instance */
mixpanel.init("Token1", {}, 'developmentProject');
/* Second Instance */
mixpanel.init("Token2", {}, 'productionProject');
/* Now you can send data to either using the namespace and they'll go to separate projects */
mixpanel.developmentProject.track('Event');
mixpanel.productionProject.track('Event');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment