Track
Track let's you build up a picture of your users. Data points on your users are called Traits. These are attributes you can derive insight from to drive decision making. /track
provides the mechanism to record these attributes.
Track attributes
POST
/track/:userId
Updates an existing user's traits.
Much like identifiers, traits use an append & merge approach. Properties will override an existing value if that key already, and any new properties will be added.
You do not need to send existing properties when updating, these will continue to be persisted (or overwritten per the above section). To remove a value, send the key and a null
value. For example to remove lastPurchaseDate
:
Headers
Content-Type*
application/json
Authorization*
Bearer <token>
Query
:userId
*
string
ID of the user. usr_[A-Za-z0-9]{16}
Body
traits
object
An object containing identifying properties on the user
Response
Important: Fields with a
*
must be included in your request!
Last updated