analytics icon indicating copy to clipboard operation
analytics copied to clipboard

Feature request: support for groups/accounts/companies/orgs

Open dobesv opened this issue 3 years ago • 3 comments

With the segment analytics library, it has an operation analytics.group which sends information about the company/account of the user to analytics systems that track this information. Could this library support this as well?

dobesv avatar Oct 07 '22 19:10 dobesv

It could. I originally didn't add this because there weren't many analytic sinks that support that type of functionality.

Are you trying to send this information to a specific service?

Also what might a call look like? I'm wondering if it's possible to just send along this data via the identify call like:

analytics.identify('user-id, { company: 'Cool co inc' }) 

DavidWells avatar Oct 07 '22 20:10 DavidWells

For us it's Pendo and Intercom.

It would probably be better if it was a parameter to identify, there's doesn't seem to be much value in separating it out and in the case of Pendo and Intercom they end up doing some hacks to try and combine the two back together again after because the upstream doesn't support sending these separately.

If it was just a "standardized" key for identify that plugins could choose to translate to a backend-appropriate form on receipt that could work well. Maybe make it an array so that multiple groups can be provided, as some backends do support this (e.g. Intercom).

Interestingly, the segment integration for Google Analytics 4 sends a join_group event when you call analytics.group but I'm not sure if that has any useful effect in the Google Analytics interface. I just noticed this from looking at the code for it.

dobesv avatar Oct 07 '22 20:10 dobesv

I support dobesv's request for a parameter to identify!

singithi-kandage avatar Mar 07 '24 15:03 singithi-kandage