External ID
An external ID is your own stable identifier for a user, typically the ID from your auth system. Set it after login or whenever you know who the current user is. The SDK persists the external ID locally and reuses it across sessions until you reset. Use the external ID to match a participant in Pillow back to the same user in your own systems.User properties
User properties are durable traits you attach to a user for targeting and analysis: a plan tier, a verified flag, a lifetime value. Properties persist locally and travel with the user across sessions. Properties support three value types:stringbooleannumber
When to identify
- After login, or as soon as you know the user’s identity.
- When a trait changes that you target or segment on (for example, a plan upgrade).
How it relates to reset
Identity and properties live on the device until you callreset() on logout. Reset clears the external ID and properties and starts a fresh anonymous session, so the next user doesn’t inherit the previous one. See Sessions.
Per-platform reference
Web
Identify browser users.
iOS
Identify users on iOS.
Android
Identify users on Android.