Skip to main content
Sets user attributes for offer targeting and personalization. Attributes are merged with existing ones (including the custom map), never replaced wholesale, so set them incrementally as you learn more about the user.

Signature

Returns void. Attributes are persisted locally and sent with subsequent offer requests.

UserAttributes

All fields are optional strings:

Examples

Incremental updates merge:
You can also pass attributes directly to identify() in the same call.

getUserAttributes()

Returns a copy of the currently merged attribute set: