Node — Group
Associate users with groups (e.g. company, organization) and set group properties. UsegroupIdentify() to set or update group attributes and group() to associate a user with a group.
groupIdentify(options, sessionId?, windowId?)
Set or update group properties. Sends$groupidentify.
| Option | Type | Required | Description |
|---|---|---|---|
groupType | string | yes | e.g. 'company', 'organization' |
groupKey | string | yes | Group identifier |
properties | Record<string, JsonType> | no | Group properties to set |
group(distinctId, groupType, groupKey, properties?, sessionId?, windowId?)
Associate a user with a group. Sends$group_assign event. If properties are provided, also calls groupIdentify() to set group properties.
| Parameter | Type | Required | Description |
|---|---|---|---|
distinctId | string | yes | User identifier |
groupType | string | yes | Type of group (e.g. 'company', 'organization') |
groupKey | string | yes | Unique identifier for the group |
properties | Record<string, JsonType> | no | Group properties to set |
sessionId | string | no | From x-signal-session-id header for client correlation |
windowId | string | no | From x-signal-window-id header for client correlation |
