User Properties
Managing user-level properties that can be used for segmentation and conditional logic in Streams.
Last updated
Managing user-level properties that can be used for segmentation and conditional logic in Streams.
Last updated
Properties can be defined at the user-level and later used for segmentation and conditional logic in Streams.
User properties can be managed from the browser by pushing commands to Fanplayr's Data Layer array. The following operations are supported:
Sets a property on the user record. It overwrites any existing value for the same property name.
Usage:
Argument | Type | Description |
---|---|---|
Sets a property on the user record, only if it does not already exist.
Usage:
Increments or decrements a numeric property. If the property does not exist it is created and set to the amount specified.
Usage:
Removes a property on the user record.
Usage:
User properties can also be updated via the Update User Data action in streams:
An overall limit of approximately 20 KB can be stored for each user. Any updates to the user data that would exceed this limit are ignored and not persisted. The names, values and expiry information for each property count towards the overall limit.
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
key
String (required)
The name of the property to store.
value
any (required)
The value to store for the given property name.
maxAge
Number (optional)
Specifies the maximum duration in seconds to store the property.
key
String (required)
The name of the property to store.
value
any (required)
The value to store for the given property name.
maxAge
Number (optional)
Specifies the maximum duration in seconds to store the property.
key
String (required)
The name of the property to store.
value
Number (optional)
The amount to increment by. Defaults to 1.
maxAge
Number (optional)
Specifies the maximum duration in seconds to store the property.
key
String (required)
The name of the property to remove.