The User Object

Set up information about the current visitor

The user object is part of the activity object, and provides information about the user. The highlight of the user object are the identities explained in the introduction to this section.

"user": {
    "identities": {
        "sessionId": string,
        "{{identityRepository1}}": string,
        "{{identityRepository2}}": string,
        ...
    },
    "segments": string[],
    "traits": {
        "trait1": "value",
        "trait2": "value"
    }
}

Aside from the identities, we also have user segments and user traits which are specific to the XO platform**:**

  • User segments are labels to qualify groups of users sharing common traits or behaviors, such as โ€œFrequent buyerโ€ or โ€œProspectโ€.

  • User traits are various qualifying values related to the user in question including profile and preference data, age, gender, likes, etc.

Both segments and traits are not mandatory for identifying visitors and don't have to be sent. However, sending them can provide more detailed analytics, which leads to better understanding of user behavior. It can also help with personalization, making sure your users get relevant recommendations.

Important! Traits are information you know on your users and that you want to use in Attraqt's platform. You must only send information relevant to the platform usage and avoid sending personal information.

Read more on how to use the user object and all its perks below.

pageIdentifying Users Across Devices

Last updated