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. Activities

Custom actions

Request custom actions for tracking beyond built-in actions.

If you need to track actions beyond those built into our system (e.g., view, click, add-to-cart, remove-from-cart, purchase). To discuss the setup of a custom action, contact your Customer Support Manager.

Once your custom action is configured, you can send activity data for that action.

Below is an example of a custom action for add-to-wishlist:

{
    "action":"add-to-wishlist",
    "target": {
        "product": "product-id"
    },
    "sourceId":"source-id",
    "metadata": {
        "quantity": 1
    }
}
PreviousPurchaseNextAI Scores

Last updated 3 months ago