Mixpanel
The primary class for integrating Mixpanel with your app.
-
initialize(token:trackAutomaticEvents: flushInterval: instanceName: optOutTrackingByDefault: useUniqueDistinctId: superProperties: serverURL: ) Initializes an instance of the API with the given project token.
Returns a new Mixpanel instance API object. This allows you to create more than one instance of the API object, which is convenient if you’d like to send data to more than one Mixpanel project from a single app.
Important
If you have more than one Mixpanel instance, it is beneficial to initialize the instances with an instanceName. Then they can be reached by calling getInstance with name.
-
initialize(token:flushInterval: instanceName: optOutTrackingByDefault: useUniqueDistinctId: superProperties: serverURL: ) Initializes an instance of the API with the given project token (MAC OS ONLY).
Returns a new Mixpanel instance API object. This allows you to create more than one instance of the API object, which is convenient if you’d like to send data to more than one Mixpanel project from a single app.
Important
If you have more than one Mixpanel instance, it is beneficial to initialize the instances with an instanceName. Then they can be reached by calling getInstance with name.
-
Gets the mixpanel instance with the given name
-
Returns the main instance that was initialized.
If not specified explicitly, the main instance is always the last instance added
-
Sets the main instance based on the instance name
-
Removes an unneeded Mixpanel instance based on its name
View on GitHub
Mixpanel Class Reference