Signature
Parameters
User attributes object. Attributes are merged with existing ones.
Return Value
Type:void
Examples
Basic Attributes
Complete Profile
Incremental Updates
Attributes are merged, not replaced:Attribute Categories
Identity Attributes
Location Attributes
Demographics
Subscription Attributes
Engagement Attributes
Custom Attributes
Common Use Cases
After Profile Update
After Subscription Change
Track User Activity
Dynamic Segmentation
Getting Attributes
getUserAttributes()
Retrieve currently set attributes:Best Practices
1. Update Incrementally
You don’t need to set all attributes at once:2. Keep Attributes Updated
Update attributes when they change:3. Use Custom Attributes
Leverage custom attributes for app-specific data:4. Use ISO 8601 for Dates
Complete Example
Related Methods
- identify() - Identify users with initial attributes
- getUserAttributes() - Get current attributes
- reset() - Clear all attributes
Next Steps
- presentOffer() - Show targeted offers
- User Management Guide - Complete user management patterns