Property Reference
Properties are attributes that help you define the specifics of an Event, a User, or a Group. Mixpanel has many property types defined in its Data Model.Property Types
Supported Data Types
Mixpanel supports five data types for properties: String, Numeric, Boolean, Date and List. By choosing the most suitable data type for your properties, you’re able to apply a set of operators that are most relevant to your properties in Mixpanel reports, giving you richer insights into your data.String
- Alphanumeric value e.g. Plan Type = “Free”, Artist Name = “Bruno Mars”.
- String properties have a limit of 255 bytes.
- Different character encodings require different number of bytes to represent a single character.
- Mixpanel will treat any property value that does not match any other data type as a String.
Numeric
- Numeric (integer or decimal) value e.g. Cost = 15.00, Quantity = 5.
- You can apply operators such as sum, median and percentile on numeric properties.
Boolean
- Mixpanel treats properties as boolean if the value is either the JSON constant
trueorfalse; e.g. Favorite = true, Bookmarked = false. - On Mixpanel, you can typecast any non-boolean property to boolean.
- “false”, 0, null, undefined, empty string and
not setwill be typecasted to booleanfalse. - “true” and any set value that is not 0 or empty string will be typecasted to boolean
true.
Date
- An ISO formatted date
YYYY-MM-DDTHH:MM:SSin UTC e.g. Last Purchase = “2022-10-30T13:30:25”, Last Login = “2022-10-29”. - Note that all timestamps need to be sent in UTC timezone in an ISO format.
- Mixpanel treats unix timestamps as Numeric property, however, you can typecast it to Date data type.
- Timestamps are ingested with millisecond precision, but exported with second precision.
- You can break down your results by the “Time” event property and breakdown by Hour, Day, Week, Month, Quarter, Year, Hour of Day, or Day of Week.
List
- A list of values as a JSON array e.g. Favorite Genres =
["Folk","Alternative"]or Favorite Numbers =[1,5,10.0] - Limits of a List property: Event Property = 8KB, User Profile Property = 256KB
- Each item in a list would be further limited by their data type’s limits; example: a list of strings would be limited by 255 bytes per string.
- Mixpanel lists are not ordered (i.e. position of values in a list are not significant in Mixpanel reports) and are useful for grouping or analyzing similar values across events.
Editing of list properties is not supported directly within the Mixpanel UI. To modify list properties, you must use the Mixpanel API or one of our SDKs.
Object
Mixpanel supports object in a limited capacity. We recommend using the five non-object data types for most use cases as they are fully supported in the UI.
- Arbitrarily-nested groups of JSON key-value pairs e.g. Experiments =
{"Exp Onboarding":"Quick","Exp Checkout":"Without Coupon"} - Limits of an Object property: Event Property = 8KB, User Profile Property = 256KB, max 255 keys per nested object with a max nesting depth of 3
- Mainly supported in core reports (i.e. Insights, Funnels, Flows, Retention, Users / Cohorts, Events) as filters and breakdowns.
List of Objects
- A JSON array of 1 level JSON objects with each object having similar sets of key-value pairs e.g. Cart =
[{"Brand":"Puma","Category":"Jacket","Price":30}, {"Brand":"Adidas","Category":"Hats","Price":15}] - Limits of a List of Objects: Event Property = 8KB, User Profile Property = 256KB, max 255 keys and no nesting; average list size = 50 objects
- Mainly supported in core reports as filters and breakdowns.