What Are User Properties?
User properties are attributes about your users, like their subscription plan, location, or preferences. They help you:- Segment users: Group users by plan, location, behavior
- Personalize experiences: Show different content based on properties
- Analyze behavior: Compare how different user groups behave
Setting Properties
UsesetProperty() to add attributes to a user:
- Set up to 4 properties per request
- All values are automatically converted to strings
- Properties persist for the user
- Works with the current user ID (from
setUserId())
Property Values
All property values become strings, regardless of what you pass:When to Set Properties
Set properties when they change or when a user first signs up:Setting for Specific Users
Override which user receives properties using options:Properties for Personalization
Properties power remote configuration personalization. When fetching configs, pass properties to get personalized values:Common Properties
Here are properties commonly tracked in applications:Account Properties
Demographic Properties
Behavioral Properties
Property Limits
To prevent abuse and ensure performance:- 4 properties per request maximum
- Rate limiting may apply if setting properties too frequently
- Property keys and values have size limits (typically 256 chars)
Security Considerations
User properties have security restrictions to prevent abuse:User ID Must Match JWT
With JWT authentication, you can only set properties for the authenticated user:Rate Limiting
Setting properties for many different user IDs from the same source may trigger rate limiting. This prevents one client from modifying many user profiles. Learn more in Security.Async Operations
setProperty() is asynchronous - it returns a Promise: