User context object

The following table describes the keys in the user context object:

KeyTypeDescriptionValue
user_idstringUser ID identified by the developer.NoteYou must specify either user_id or uuid to allow user activity tracking and assignment to active experiments if any.n/a
uuidstringUser ID identified by Discover.n/a
genderstringUser gender.malefemale
emailstringUser email address.n/a
order_idlist of stringsOrder ID associated with the request.n/a
new_userbooleanIf yes, indicates that the current user is new.n/a
groupslist of stringsCustom groups or segments assigned to the user.n/a
customcustom objectCustom user context. Pass the name of the custom user context as the key (string) and the actual value as the value (string). You can pass more than one key
pair.Example:{"customID1": "value1", "customID2": "value2"}
n/a
If you have suggestions for improving this article, let us know!