Node — Set person properties
Set or update user properties from the server withsetPersonProperties (overwrites) or setPersonPropertiesOnce (only if not already set). Pass sessionId and windowId when correlating with the client session.
setPersonProperties(distinctId, properties, sessionId?, windowId?)
Sets user properties (overwrites). Sends$set event.
| Parameter | Type | Required | Description |
|---|---|---|---|
distinctId | string | yes | User identifier |
properties | UserTraits | yes | User properties to set or update |
sessionId | string | no | From x-signal-session-id header for client correlation |
windowId | string | no | From x-signal-window-id header for client correlation |
$identify event (e.g. when properties change after initial identification).
setPersonPropertiesOnce(distinctId, properties, sessionId?, windowId?)
Sets user properties only if not already set. Sends$set_once event.
| Parameter | Type | Required | Description |
|---|---|---|---|
distinctId | string | yes | User identifier |
properties | UserTraits | yes | User properties to set (only if not already 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 |
signupSource, firstPurchaseDate).
