diff --git a/docs/Classes/Mixpanel.html b/docs/Classes/Mixpanel.html index abc997a60..811543eed 100644 --- a/docs/Classes/Mixpanel.html +++ b/docs/Classes/Mixpanel.html @@ -108,6 +108,10 @@
Mixpanel.h
+ sharedInstanceWithToken:optOutTrackingByDefault:
+Initializes a singleton instance of the API, uses it to set whether or not to opt out tracking for +GDPR compliance, and then returns it.
++ (Mixpanel *)sharedInstanceWithToken:(NSString *)apiToken optOutTrackingByDefault:(BOOL)optOutTrackingByDefault
apiToken |
+ your project token |
+
---|---|
optOutTrackingByDefault |
+ whether or not to be opted out from tracking by default |
+
This is the preferred method for creating a sharedInstance with a mixpanel +like above. With the optOutTrackingByDefault parameter, Mixpanel tracking can be opted out by default.
+Mixpanel.h
This is the preferred method for creating a sharedInstance with a mixpanel -like above. With the launchOptions parameter, Mixpanel can track referral -information created by push notifications.
+like above. With the trackCrashes and automaticPushTracking parameter, Mixpanel can track crashes and automatic push. +Mixpanel.h
+ sharedInstanceWithToken:launchOptions:trackCrashes:automaticPushTracking:optOutTrackingByDefault:
+Initializes a singleton instance of the API, uses it to track launchOptions information, +and then returns it.
++ (Mixpanel *)sharedInstanceWithToken:(NSString *)apiToken launchOptions:(nullable NSDictionary *)launchOptions trackCrashes:(BOOL)trackCrashes automaticPushTracking:(BOOL)automaticPushTracking optOutTrackingByDefault:(BOOL)optOutTrackingByDefault
apiToken |
+ your project token |
+
---|---|
launchOptions |
+ your application delegate’s launchOptions |
+
trackCrashes |
+ whether or not to track crashes in Mixpanel. may want to disable if you’re seeing +issues with your crash reporting for either signals or exceptions |
+
automaticPushTracking |
+ whether or not to automatically track pushes sent from Mixpanel |
+
optOutTrackingByDefault |
+ whether or not to be opted out from tracking by default |
+
This is the preferred method for creating a sharedInstance with a mixpanel +like above. With the optOutTrackingByDefault parameter, Mixpanel tracking can be opted out by default.
– lib
+
+ Declared In
+ Mixpanel.h
+
+
+
+
– optOutTracking
+Opt out tracking.
+- (void)optOutTracking
This method is used to opt out tracking. This causes all events and people request no longer +to be sent back to the Mixpanel server.
+Mixpanel.h
– optInTracking
+Opt in tracking.
+- (void)optInTracking
Use this method to opt in an already opted out user from tracking. People updates and track calls will be +sent to Mixpanel after using this method.
+ +This method will internally track an opt in event to your project. If you want to identify the opt-in
+event and/or pass properties to the event, See also optInTrackingForDistinctId:
and
+optInTrackingForDistinctId:withEventProperties:
.
Mixpanel.h
– optInTrackingForDistinctID:
+Opt in tracking.
+- (void)optInTrackingForDistinctID:(nullable NSString *)distinctID
distinctID |
+ optional string to use as the distinct ID for events. This will call |
+
---|
Use this method to opt in an already opted out user from tracking. People updates and track calls will be +sent to Mixpanel after using this method.
+ +This method will internally track an opt in event to your project. If you want to pass properties to the event, see also
+optInTrackingForDistinctId:withEventProperties:
.
Mixpanel.h
– optInTrackingForDistinctID:withEventProperties:
+Opt in tracking.
+- (void)optInTrackingForDistinctID:(nullable NSString *)distinctID withEventProperties:(nullable NSDictionary *)properties
distinctID |
+ optional string to use as the distinct ID for events. This will call |
+
---|---|
properties |
+ optional properties dictionary that could be passed to add properties to the opt-in event that is sent to +Mixpanel. |
+
Use this method to opt in an already opted out user from tracking. People updates and track calls will be +sent to Mixpanel after using this method.
+ +This method will internally track an opt in event to your project.See also optInTracking
or
+optInTrackingForDistinctId:
.
Mixpanel.h
– hasOptedOutTracking
+Returns YES if the current user has opted out tracking, NO if the current user has opted in tracking.
+- (BOOL)hasOptedOutTracking
Mixpanel.h