Associate the current user with a company and update company attributes
group()
method associates the currently identified user with a company and optionally updates the company’s attributes. Call this method once on any page where the user is working with a specific company. When the user switches to a different company, call usertour.group(newGroupId)
again to update the association.
When you provide attributes
, they will be merged with the company’s existing attributes in Usertour. Attributes not included in the call will retain their current values.
Promise
that resolves when the group association is complete.