Skip to main content

setUserProperties(userProperties)

Updates the user properties for the current booted user.

Examples

Update user properties

const userProperties = { isPaid: true };

window.CommandBar.setUserProperties(userProperties);

Method parameters

userProperties Required

object

Key-value pairs to be associated with the end user ID CommandBar was booted with.

Sets the user properties for the current user. These properties will be associated with the user and can be used for targeting. boot() must be called before setUserProperties() can be called.