Hacker News new | ask | show | jobs
by lindesvard 764 days ago
Have missed this feature. Would love to hear more and how I could implement this feature.

Is it a flag/field in the SDK that tells you I’m from a specific company or is it some black magic?

3 comments

It lets you associate users to companies so you can look at analytics from a user or company perspective.

ie, how many individuals are using this feature or what’s the average usage of this feature for a company.

They usually use something akin to Segments “group” event type, which associated a user id with (depending on the platform) one or more “group ids”. These could correlate to company/team/region/etc.

Having implemented something similar-ish recently, we went the route of requiring callers to ”do the work” of telling us which group the user belongs to. Figuring it out is unnecessarily difficult and prone to issues.

I like this approach a lot. Only downside is that you cannot dynamically change groups and what not in a later stage.

But if each events were associated directly to a group (by the caller) this would be quite easy to implement.

Yeah generally the customer will specify which "group" a user belongs to when calling your SDK/API.

Mixpanel's docs: https://docs.mixpanel.com/docs/data-structure/advanced/group...

Segment's docs: https://segment.com/docs/connections/spec/group/

In B2B SaaS, it's a lot more important to understand which customers are using which features, not which users. One customer can have many users, and one user can belong to multiple companies.

This is pretty much a must have for B2B SaaS even though it's always tucked away in expensive plans with tools like Mixpanel and Amplitude.