Skip to main content

Vue / Browser — Group

Associate the current user with a group (e.g. company, organization) and optionally set group properties. Use signal.group() to associate a user with a group and signal.getGroups() to get all groups the user belongs to.

group(groupType, groupKey, properties?)

Associate the current user with a group. Optionally set group properties. When to use: When a user joins or is associated with a group (e.g. company, team, organization).

getGroups()

Get all groups the user is currently associated with. Returns an array of group objects. When to use: To check which groups a user belongs to, for conditional UI, or debugging.

Vue example

Vanilla JS example

See also