React — Group
Associate the current user with a group (e.g. company, organization) and optionally set group properties. UseuseSignalGroup() to get group and getGroups.
useSignalGroup
group(groupType, groupKey, properties?)
- groupType (
string) — Type of group (e.g.'company','organization'). - groupKey (
string) — Unique identifier for the group. - properties (
Record<string, unknown>optional) — Group properties to set.
group() sends a group association event and can set or update group properties. Subsequent events may include this group context for analytics.
getGroups
getGroups() returns the list of groups the user is currently associated with (from the SDK state). Useful for debugging or conditional UI.
