Created
October 9, 2014 19:14
-
-
Save gooley/9b7fe1673c5def0f73ea to your computer and use it in GitHub Desktop.
Mixpanel + Preact example
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
// A standard mixpanel track event takes a name and optional Properties | |
mixpanel.track("Viewed Dashboard", {"Gender": "Male", "Age": 21}); | |
// Pass account context information along with each Track call using the following properties | |
{ | |
"_account_id": "333434", // this should be your internal id for the account | |
"_account_name": "Snapchat" // this should be a display name for the account | |
} | |
// pass those properties (along with any others you already pass) with each track call | |
mixpanel.track("Viewed Dashboard", {"Gender": "Male", "Age": 21, "_account_id": "333434", "_account_name": "Snapchat"}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment