Objective-C (iOS) data types integrate easily with Mixpanel's Engagement and User datastores.
Overall, the most important guidance is to avoid Objective-C primitives for property values because these non-object types cannot be placed in the NSDictionary for event and user profile properties.
String
NSString
Date
NSDate
For both event properties or user profile properties, dates are best formatted as string formatted as ISO8601 dates "YYYY-MM-DDThh:mm:ss" (in UTC).
This formatting, beyond passing an NSDate, is important because users' calendars may be in non-Gregorian formats. Mixpanel iOS lib Version 2.4.1 now handles non-Gregorian calendars gracefully.
An one exception to providing dates in the ISO8601 format: Mixpanel's special 'time' property for events, which is a Unix Epoch in UTC and should be an NSNumber. Our library adds this property by default.
Boolean or Logical
NSBool
List
NSArray
Number
NSNumber
Comments
Article is closed for comments.