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
  • Obtain your tracker key(s)
  • Set up identities (Optional)
  • Choose an implementation method
  • Ensure data provision
  • FHR and XO response object
  • Handling multiple responses on a single page
  • Additional data
  1. Setup guide

Prerequisites

Steps to set up tracking on your platform: obtain tracker keys, configure identities, choose an implementation method (SDK, GTM, REST API), and ensure accurate data provision for events.

PreviousSetup guideNextFHR activities

Last updated 3 months ago

Before tracking user actions on your platform, complete the following steps:

  • .

  • .

  • .

Obtain your tracker key(s)

A tracker key is a unique UUID that dentifies the environment from which activity events are sent. Typically, each environment has its own tracker key to enable separate tracking.

To obtain your tracker key(s), reach out to your Customer Support Manager.

Set up identities (Optional)

Our system uses identities to help you recognize when the same user performs multiple activities.

By default, you must provide a . However, you can include additional identities for more comprehensive tracking (e.g. an e-commerce ID).

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

You can find more information in the .

Choose an implementation method

We provide three ways to implement tracking on your platform:

Ensure data provision

To accurately track activity events, you must provide the information required for each specific activity event.

FHR and XO response object

Additionally to the response ID, the FHR or XO response object provides the following IDs and values:

  • Campaign ID

  • Facet ID

  • Facet values

  • XO widget ID

Handling multiple responses on a single page

In scenarios where multiple data responses are used to power a single page, it's essential you ensure activities, such as clicks or views, are attributed to the correct response. For example:

  • A page might combine XO recommendations with FHR-powered content.

Ensure that you match activities to the relevant response. Activities (e.g., views or clicks) should always reference the response that supplied the content associated with the action.

Additional data

In addition, you must provide the following information:

  • Product IDs

  • Page paths

  • Search terms

  • Product prices (discounts applied)

  • Product sell quantity

Depending on your use case, you may need to provide the following information:

You can find more information in the .

Most required information is available in the or which powers different pages on your platform. The response ID from this object will be required as the for most events.

might display content from multiple response pages on a single page.

Order ID (when multiple products are at once)

User (when using additional identities)

You can find more information in the .

SDK
Google Tag Manager
REST API
Implementation methods section
purchsed
identities
Activities section
Identities sections
Obtain your tracker key
(Optional) Set up identities
Choose an implementation method.
Ensure data provision
FHR response object
XO response object
source ID
Infinite scroll functionality
Context or locale
session ID