setUserProperties method sends user properties along with default user properties. Use this to attach user information for known users.
Key Characteristics:
- Sent as Event: Calling
setUserPropertiestriggers an event with the event nameset_user_properties. - Non-Persistent: The properties sent via this method are associated with this specific
set_user_propertiesevent. They are not automatically persisted in the storage or automatically included with subsequent, different events (like page views or custom events triggered bysetEventProperties). - Distinct from
setUserIdentities: This function is different fromsetUserIdentities, which is used for establishing and persisting core user identifiers.setUserPropertiesis for sending additional, often more dynamic or contextual, user-level attributes.
Syntax
Parameters
Usage Examples
Basic User Properties
Detailed page properties in payload
With Callback
Related Methods
- setUserIdentities - Set user identities
- setEventProperties - Track events