I'm facing issues setting up group analytics / b2b company analytics. I've added the group key ('company_id') to both events and as a user property in my code. Companies are now showing up under Users -> Company Id (image 1) and the company profile page also shows a list of events in the 'Activity Feed' (image 2). However, the company profile page shows empty reports (image 3). On clicking on a report (such as DAU or Power Users), i can see that it is filtering by 'Company Id -> Distinct Id is xxx' (image 4), and changing that filter to 'Company Id -> Any in list is xxx' gives me the correct report (image 6). Please let me know what I'm doing wrong and how to fix this thanks!
The knowledge you shared covers: - How Mixpanel uses user feedback and power users to shape product roadmaps and personas. [Power users roadmap; Personas from customers]
- Why asking users “what do you want?” directly is often ineffective, and how to instead probe for underlying needs. [What to do instead]
- The importance of focusing on UX to improve NPS and adoption. [Tripled NPS]
- How to lead analytics implementations with “why” questions, not just surface metrics. [Data implementation why]
- How Annotations work in Mixpanel’s UI and via the Annotations API (create, list, get, patch), plus an example of automating annotations from GitHub releases. [Annotations feature; Annotations API; GitHub releases → annotations]
- A Langfuse integration event ([Langfuse] Score) for bringing user feedback / quality scores into Mixpanel. [Langfuse score]If you share what you’re trying to achieve (e.g., “I want to annotate releases automatically” or “I want to better use user feedback in Mixpanel”), I can give more specific, actionable guidance based strictly on these docs.
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.
i'll copy my original comment i guess: I'm facing issues setting up group analytics / b2b company analytics. I've added the group key ('company_id') to both events and as a user property in my code. Companies are now showing up under Users -> Company Id (image 1) and the company profile page also shows a list of events in the 'Activity Feed' (image 2). However, the company profile page shows empty reports (image 3). On clicking on a report (such as DAU or Power Users), i can see that it is filtering by 'Company Id -> Distinct Id is xxx' (image 4), and changing that filter to 'Company Id -> Any in list is xxx' gives me the correct report (image 6). Please let me know what I'm doing wrong and how to fix this thanks! kapa.ai
Let me check the knowledge base for you again. One moment! 📚
You’re not doing anything “wrong” in your implementation; the behavior you’re seeing comes from how Group Analytics works and how the prebuilt B2B Company reports are configured.From the docs, there are a few key points: 1. Events must have the group key as an event property to count for groups
- “The group key(s) and their value should be present in every event you want associated with the group (much like the ID of a user).” [Tracking events]
- “Having the group key present as a user profile property does not automatically attribute the events by that user to the group.” [FAQ] You’ve already done this (companies show up, activity feed has events), so attribution is working.2. Users can belong to multiple groups → properties are lists
- For user profiles: "company_id": ["1", "2"] is the recommended shape. [Add group key to profile]
- For events: company_id can also be a list if an event belongs to multiple companies. [Tracking events] Because of this, the correct operator in filters/breakdowns for group keys is typically “any in list”, not “distinct id is”.3. B2B Company Analytics (Company Profiles, DAU, Power Users, etc.) are built on top of Group Analytics
- Company Analytics is “an advanced offering ‘within’ group analytics” and uses the designated B2B Company key. [B2B overview]
- You must designate the group key as the B2B Company Key in Project Settings. [Implementation setup] The prebuilt cards on the Company Profile page are just saved Mixpanel reports. In your project, they appear to be using a filter like: > Company Id → Distinct Id is X That assumes company_id is a scalar identifier, not a list. When you manually change it to: > Company Id → Any in list is X the report works, which matches the docs’ guidance for multi-membership.---
How to fix it
Based on the docs, the underlying issue is how those saved reports are filtering on the group key, not your tracking: 1. Confirm your B2B Company Key setup
- In Project Settings → Group Keys, ensure company_id is added and set as the B2B Company Key. [Implementation setup]2. Check the shape of your properties
- On a sample user profile, confirm company_id is stored as a list (e.g. ["123"]) if users can belong to multiple companies. [Add group key to profile]
- On a sample event, confirm company_id is present as an event property (string or list). [Tracking events]3. Update the filters in the saved reports
For each empty card on the Company Profile page (DAU, Power Users, etc.): - Click into the report.
- Find the filter that looks like:
Company Id → Distinct Id is <this company>
- Change the operator to:
Company Id → Any in list is <this company>
- Save the report (overwrite the existing saved report if you want the Company Profile card to use the new logic). This aligns the report logic with how group keys are modeled in the docs (lists) and matches the manual change you already tested.---If after doing this you still see empty cards even though the underlying report works when opened, that behavior isn’t described in the docs I have access to, so I can’t say more with confidence. In that case, I’d recommend sharing your screenshots and a sample event JSON with Mixpanel Support so they can inspect the saved report definitions directly.
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.
i've already done 1, 2; for 3, i don't see an option to save the modified report back to the company profile page? i can only add it to my boards
