LogoLogo
Support
Front End Tracking
Front End Tracking
  • Introduction to front-end tracking
  • Setup guide
    • Prerequisites
    • FHR activities
    • XO Search activities
    • XO Recommendations activities
  • Implementation guide
    • SDK
    • Google Tag Manager
    • REST API
  • Identities
    • User object
    • Working with identities
  • Activities
    • Activity object
    • View
    • Click
    • Add to cart
    • Remove from cart
    • Purchase
    • Custom actions
  • AI Scores
    • Setup
    • Usage
  • Best practice
  • Data handling
  • Acronyms and abbreviations
Powered by GitBook

Copyright @ 2024 Crownpeak Technology, Inc. All rights reserved.

On this page
  1. Identities

User object

Understand the user object in activity tracking: manage identities, segments, and traits for user identification, analytics, and personalization in your front-end tracking setup.

PreviousIdentitiesNextWorking with identities

Last updated 3 months ago

The user object is part of the and holds all the information needed to identify users.

For example:

"user": {
    "identities": {
        "sessionId": "session-id",
        "eCommerceId": "e-commerce-id",
        "customId1": "custom-id-1",
        "customId2": "custom-id-2"
    },
    "segments": ["segment-1", "segment-2"],
    "traits": {
        "customTrait1": "value",
        "customTrait2": "value"
    }
}

The user object is split into three distinct properties:

  • Identities: Unique identifiers that apply to one user

    • The session ID is mandatory. It is a value unique to a session and can be used to identify even anonymous users.

    • Any additional identities, such as an e-commerce ID, can be used to identify users across sessions and devices.

Session IDs are supported by default. To include additional identities, contact the Crownpeak team.

  • (XO only) Segments: Labels to qualify groups of users sharing common traits or behaviors, such as "Frequent buyer" or "Prospect"

    • Segments can provide more detailed analytics, better personalization, and better recommendations, but are optional.

  • (XO only) Traits: Various qualifying values related to the user in question, including profile, and preference data, age, gender, likes, etc.

    • Traits can provide more detailed analytics, better personalization, and better recommendations, but are optional.

Traits refer to information you know about your users and that you want to use for tracking. You must only send information relevant to the platform usage and avoid sending personal information.

activity object