Created
August 24, 2015 13:18
-
-
Save kohiomobz/29d80f1104cbcbbeb3d6 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
/* 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