diff --git a/Docs/API/Classes/MixpanelAPI/index.html b/Docs/API/Classes/MixpanelAPI/index.html index ddf68714d..80b1cbed2 100644 --- a/Docs/API/Classes/MixpanelAPI/index.html +++ b/Docs/API/Classes/MixpanelAPI/index.html @@ -2,60 +2,223 @@ "http://www.w3.org/TR/1998/REC-html40-19980424/loose.dtd">
+ |
-
Main entry point for the Mixpanel API. - -Superclass: NSObject
-
-Discussion -With MixpanelAPI you can log events and analyze funnels using the Mixpanel dashboard. - - - Methods+MixpanelAPI+
Introduction+Main entry point for the Mixpanel API. + +Discussion+With MixpanelAPI you can log events and analyze funnels using the Mixpanel dashboard. + + + Methods
Methods+ -
Uploads datapoints to the Mixpanel Server. - -
-
-- (void)flush;- Discussion -Uploads datapoints to the Mixpanel Server. - - + flush+Uploads datapoints to the Mixpanel Server. + +
+
+- (void)flush;+ Discussion+Uploads datapoints to the Mixpanel Server. + + -
Identifies a user. - -
-
-- (void)identifyUser:(NSString*) identity;- Parameters-
-
-
Discussion -Identifies a user throughout an application run. By default the UDID of the device is used as an identifier.
-The API must be initialized with - -
Registers a funnel. - -
- - (void)registerFunnel:(NSString*) funnel steps:(NSArray*) steps;+ identifyUser:+Identifies a user. + +
+
- (void)identifyUser:(NSString*) identity; ParametersDiscussion -Registers a funnel with an array of events to use as steps. This method simplifies funnel tracking by preregistering -a funnel. After calling this method, you can track funnels by calling the track: or track:properties: methods with an event specified in steps. + Discussion+Identifies a user throughout an application run. By default the UDID of the device is used as an identifier.
The API must be initialized with + + -
Registers a set of super properties for all event types. - -
- - (void)registerSuperProperties:(NSDictionary*) properties;+ registerSuperProperties:+Registers a set of super properties for all event types. + +
+
- (void)registerSuperProperties:(NSDictionary*) properties; ParametersDiscussion -Registers a set of super properties, overwriting property values if they already exist. + Discussion+Registers 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 - -
Registers a set of super properties for a specified event type. - -
-
-- (void)registerSuperProperties:(NSDictionary*) properties - eventType:(MPLibEventType) eventType;- Parameters-
-
-
Discussion -Registers a set of super properties, overwriting property values if they already exist.
-Super properties are added to all the data points of the specified event type.
-The API must be initialized with + + -
Registers a set of super properties unless the property already exists. - -
- - (void)registerSuperPropertiesOnce:(NSDictionary*) properties;+ registerSuperPropertiesOnce:+Registers a set of super properties unless the property already exists. + +
+
- (void)registerSuperPropertiesOnce:(NSDictionary*) properties; ParametersDiscussion -Registers a set of super properties, without overwriting existing key\value pairs. + Discussion+Registers 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 + + -
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;+ 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; Parameters
Discussion -Registers a set of super properties, without overwriting existing key\value pairs. If the value of an existing property is equal to defaultValue, + Discussion+Registers 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 - -
Registers a set of super properties for a specified event type unless the property already exists. - -
-
-- (void)registerSuperPropertiesOnce:(NSDictionary*) properties - eventType:(MPLibEventType) eventType;- Parameters-
-
-
Discussion -Registers a set of super properties, without overwriting existing key\value pairs.
-Super properties are added to all the data points of the specified event type.
-The API must be initialized with - -
Registers a set of super properties for a specified event type without overwriting existing values unless the existing value is equal to defaultValue. - -
-
-- (void)registerSuperPropertiesOnce:(NSDictionary*) properties - eventType:(MPLibEventType) eventType defaultValue:(id) defaultValue;- Parameters-
-
-
Discussion -Registers 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 of the specified event type.
-The API must be initialized with + + -
Returns the shared API object. - -
-
-+ (id)sharedAPI;- Discussion -Returns the Singleton instance of the MixpanelAPI class. + sharedAPI+Returns the shared API object. + +
+
++ (id)sharedAPI;+ Discussion+Returns the Singleton instance of the MixpanelAPI class.
The API must be initialized with + + -
Initializes the API with your API Token. Returns the shared API object. - -
- + (id)sharedAPIWithToken:(NSString*)apiToken;+ sharedAPIWithToken:+Initializes the API with your API Token. Returns the shared API object. + +
+
+ (id)sharedAPIWithToken:(NSString*)apiToken; Parameters-Discussion -Initializes the MixpanelAPI object with your authentication token. + Discussion+Initializes 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. - - + + -
Tracks an event. - -
- - (void)track:(NSString*) event;+ track:+Tracks an event. + +
+
- (void)track:(NSString*) event; Parameters-Discussion -Tracks an event. Super properties of type Discussion+Tracks an event. Super properties of type + + -
Tracks an event with properties. - -
- - (void)track:(NSString*) event properties:(NSDictionary*) properties;+ track:properties:+Tracks an event with properties. + +
+
- (void)track:(NSString*) event properties:(NSDictionary*) properties; Parameters
Discussion -Tracks an event. The properties of this event are a union of the super properties of type Super properties of type
- Tracks an event. The properties of this event are a union of the super properties of type Super properties of type
+ Tracks a funnel step.
- The name for this funnel. Super properties of type The step number of the step you are tracking. Step numbers start at 1. A Human readable name for this funnel step. Tracks a funnel step.
-The API must be initialized with Tracks a funnel step with properties.
- The name for this funnel. Super properties of type The step number of the step you are tracking. Step numbers start at 1. A Human readable name for this funnel step. The properties for this event. The keys must be NSString objects and the values should be NSString or NSNumber objects. Tracks a funnel step with properties. The properties of this funnel step are a union of the super properties of type Super properties of type
-The API must be initialized with 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.
-
- Last Updated: Thursday, July 22, 2010
- The upload interval in seconds.
+ Changes the interval value. Changing this values resets the update timer with the new interval.
+
+ |