Can I use user profile properties as group key in order to have access to group analytics ?
Hi Laurent G., 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
No, you cannot use user profile properties as a group key to enable group analytics in Mixpanel. Group keys must be defined as event properties, not user profile properties. For an event to be attributed to a group, the group key must be present as an event property on that event. Having the group key only as a user profile property does not automatically attribute the user's events to the group for group analytics purposes.This is explicitly stated in the documentation: > The group key property must be present as an event property on an event in order to attribute them to a group profile. Having the group key present as a user profile property does not automatically attribute the events by that user to the group. Group Analytics FAQTo use group analytics, you must ensure that the group key is tracked as an event property on all relevant events, as described in the implementation guidelines. Adding the group key to user profiles is useful for connecting user and group profiles for certain types of analysis, but it does not substitute for having the group key on events for group analytics functionality Group Analytics Implementation.
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.
kapa.ai Are you familiar with the Segment group API call ? Is it relevant to the Mixpanel group ?
Let me check the knowledge base for you again. One moment! 📚
Yes, I am familiar with the Segment group API call, and it is relevant to Mixpanel Group Analytics.When you use the Segment analytics.group() API call, it creates a Group Profile and sets Group Profile Properties in Mixpanel, provided you have configured the group key mapping correctly in your Mixpanel project settings. The groupId in the Segment call is mapped to the group identifier in Mixpanel, and any properties you pass are set as group profile properties in Mixpanel.For example: LBKS// The groupId is "some_company" // The second argument contains group profile properties analytics.group("some_company", { "$name": "some_company_name", "employees": 100, "id": "some_company" });LBKS
This will create or update a group profile in Mixpanel with the group key and properties you specify. To ensure proper attribution, you must also configure the group key mapping in both Segment and Mixpanel to match (e.g., company_id
as the group key)Â Implementing Group Analytics using Segment.In summary, the Segment group API call is directly relevant and is the recommended way to create and update group profiles in Mixpanel when using Segment as your data pipeline.
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.
kapa.ai Is there any way to avoid having to add a group key to all of my events ? And instead use user data ?
Let me check the knowledge base for you again. One moment! 📚
No, according to the Mixpanel documentation, there is no way to avoid adding a group key as an event property if you want events to be attributed to a group for group analytics. The group key must be present as an event property on each event you want to analyze at the group level. Having the group key only as a user profile property does not attribute the user's events to the group: > The group key property must be present as an event property on an event in order to attribute them to a group profile. Having the group key present as a user profile property does not automatically attribute the events by that user to the group Group Analytics FAQ.This is a core requirement of Mixpanel's group analytics data model, and there is no documented workaround to use only user data for group attribution. You must ensure the group key is tracked on all relevant events for group analytics to function as intended Group Analytics Implementation.
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.
kapa.ai Can I use nested properties as group key ?
Let me check the knowledge base for you again. One moment! 📚
I'm sorry, but the knowledge sources do not explicitly mention whether nested properties can be used as a group key in Mixpanel. The documentation states that group keys must be event properties and must be set up in your project settings, but it does not clarify if nested properties (such as company.id
) are supported as group keys Group Analytics Implementation.If you need to use a nested property as a group key, I recommend checking directly in your Mixpanel Project Settings or reaching out to Mixpanel support for confirmation.
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.