can I store objects in the user properties?
Hi Eden O., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹
Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai
Yes, you can store objects in user properties in Mixpanel, but with some limitations. According to the Supported Properties Data Type documentation, Mixpanel supports objects in a limited capacity:- Objects can be stored as arbitrarily-nested groups of JSON key-value pairs. - The limits for an Object property are: - Event Property: 8KB - User Profile Property: 256KB - Maximum of 255 keys per nested object - Maximum nesting depth of 3It's important to note that while objects are supported, Mixpanel recommends using the five non-object data types (String, Numeric, Boolean, Date, and List) for most use cases, as they are fully supported in the UI.Objects are mainly supported in core reports (like Insights, Funnels, Flows, Retention, Users / Cohorts, Events) as filters and breakdowns. However, property names (keys) within an object are not supported in Lexicon.If you need to store complex data, you might also consider using a List of Objects property, which has similar limitations but can be more flexible for certain use cases.Remember that while objects can be stored, they may have limited functionality compared to the primary data types in Mixpanel's UI and analysis tools.
kapa.ai is still learning and improving, please let me know how I did by reacting below.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.