Signature
Parameters
setUserAttributes() merges with existing attributes. To clear attributes, call reset().Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Store structured user attributes for targeting and analytics
setUserAttributes(attributes: UserAttributes): Promise<{ success: boolean }>
| Name | Type | Description |
|---|---|---|
attributes | UserAttributes | Structured attributes to set for the current user |
setUserAttributes() merges with existing attributes. To clear attributes, call reset().await Encore.setUserAttributes({
email: 'user@example.com',
subscriptionTier: 'premium',
monthsSubscribed: '6',
custom: {
cancelReason: 'too_expensive',
},
});