Crownpeak
  • Product Discovery Developer Guide
  • 🛒Item catalog management
    • What is the Items API?
    • How to work with Items
      • Item Schema
        • Attributes
        • Nested Item Schemas
        • Using the Item Schema API
        • DefaultLocale API
        • Onboarding on/migrating to Fredhopper
        • List of Reserved Attributes
      • Category Tree
        • Using the Category Tree API
        • Onboarding on XO
      • Item Catalog
        • Using the Catalog API
      • Items
        • Using the streaming Items API
        • Using the batch Items API
    • Step by Step guide
      • Step by step guide for Fredhopper customers
    • Feedback
      • Using the Feedback API
    • Authorization to APIs
    • Troubleshooting API errors
  • 🎯XO Recommendations
    • Introduction
    • Using the Recommendations API
    • Setting up the Chrome extension
    • Micro-segmentation
    • XO Legacy APIs
  • 🔎XO Search
    • Introduction
    • Getting started
    • API Reference
      • Search API
      • Autocomplete API (Beta)
      • Product Suggest API
    • API Parameters
      • Search
      • Pagination
      • Faceting
      • Sorting
      • Grouping
      • Filtering
      • Disable features
      • Response mask
      • Context
    • Configuration limitation
  • 🧪A/B testing
    • Fredhopper A/B testing
      • Integration steps for a non-caching solution
      • Integration steps for a caching solution
        • Java SDK Integration
          • Setup
          • Retrieve running A/B tests - Java SDK
          • Filter and request variant - Java SDK
          • Extending the SDK
        • Manual A/B tests integration
          • Retrieve running A/B tests
          • Filter out irrelevant A/B tests
          • Assign variants to user
          • Request variant for page
        • Limitations and Best Practices
  • 📚Resources
    • Glossary
    • Best Practices
      • Tracker Best Practices
      • Items API Best Practices
      • Fredhopper Data Configuration Best Practices
      • Fredhopper Query Response Best Practices
      • Fredhopper Merchandising Studio Best Practices
    • Privacy Notice
  • Archived Pages
    • FHR Tracking plan
    • XO Tracking plan
    • The Tracking API and JS Library
      • What to Track
        • Generic Actions
          • View
          • Click
          • Add to Cart
          • Remove from Cart
          • Purchase
        • Custom Actions
      • Initializing the JavaScript Library
      • REST API Technical Documentation
Powered by GitBook
On this page
  1. Archived Pages
  2. The Tracking API and JS Library

REST API Technical Documentation

Use direct calls to the API.

Send activity

POST https://collect-eu.attraqt.io/:trackerKey

Send an activity to the API

Path Parameters

Name
Type
Description

trackerKey

string

Tracker key uniquely identifying the application.

Request Body

Name
Type
Description

target

object

The target of the action

action

string

The user's action on the website

user

object

User object (traits, segments and identities)

sourceId

string

If the action is on a search result or a recommendation, then send the sourceId - responseId in FHR or recommendationId in XO.

metadata

object

All additional contextual data on the performed action

segments

array

List of segments, usually for describing the client

timestamp

string

Timestamp in ISO format

{"profiles":{}}
{ "error": "Unauthorized", "message": "Unknown tracker key" }
{ "error": "Unprocessable Entity", "message": "Tracker key not valid" }

For an overview of the Activity object see:

For the User details, visit this link:

Users must have a sessionId on their identities. This unique ID makes it possible to follow the visitors throughout their navigation if they are not connected.

PreviousInitializing the JavaScript Library

Last updated 1 year ago