MixpanelAPI
IntroductionMain entry point for the Mixpanel API. DiscussionWith MixpanelAPI you can log events and analyze funnels using the Mixpanel dashboard. Methods
flushUploads datapoints to the Mixpanel Server. - (void)flush; DiscussionUploads datapoints to the Mixpanel Server. identifyUser:Identifies a user. - (void)identifyUser:(NSString*) identity; ParametersDiscussionIdentifies a user throughout an application run. By default the UDID of the device is used as an identifier.
The API must be initialized with registerSuperProperties:Registers a set of super properties for all event types. - (void)registerSuperProperties:(NSDictionary*) properties; ParametersDiscussionRegisters a set of super properties, overwriting property values if they already exist.
Super properties are added to all the data points.
The API must be initialized with registerSuperPropertiesOnce:Registers a set of super properties unless the property already exists. - (void)registerSuperPropertiesOnce:(NSDictionary*) properties; ParametersDiscussionRegisters a set of super properties, without overwriting existing key\value pairs.
Super properties are added to all the data points.
The API must be initialized with registerSuperPropertiesOnce:defaultValue:Registers a set of super properties without overwriting existing values unless the existing value is equal to defaultValue. - (void)registerSuperPropertiesOnce:(NSDictionary*) properties defaultValue:(id) defaultValue; ParametersDiscussionRegisters a set of super properties, without overwriting existing key\value pairs. If the value of an existing property is equal to defaultValue,
then this method will update the value of that property. Super properties are added to all the data points.
The API must be initialized with sharedAPIReturns the shared API object. + (id)sharedAPI; DiscussionReturns the Singleton instance of the MixpanelAPI class.
The API must be initialized with sharedAPIWithToken:Initializes the API with your API Token. Returns the shared API object. + (id)sharedAPIWithToken:(NSString*)apiToken; ParametersDiscussionInitializes the MixpanelAPI object with your authentication token. This must be the first message sent before logging any events since it performs important initializations to the API. track:Tracks an event. - (void)track:(NSString*) event; ParametersDiscussionTracks an event. Super properties of type track:properties:Tracks an event with properties. - (void)track:(NSString*) event properties:(NSDictionary*) properties; ParametersDiscussionTracks an event. The properties of this event are a union of the super properties of type Super properties of type
Flag to flush data when the app goes into the background.
The name tag of the current user.
Whether test mode is on
The upload interval in seconds.
Flag to flush data when the app goes into the background.
Changes the flushing behavior of the library. If set to NO, the The library will not flush the data points when going into the background. Defaults to YES.
The name tag of the current user.
The name tag is a human readable string that identifies the user.
Whether test mode is on
Changing this value enables/disables test mode for future flushes.
The upload interval in seconds.
Changes the interval value. Changing this values resets the update timer with the new interval.
|