Add-to-cart signals

Add-to-Cart represents the selection of a product, itinerary, account, or similar offering for purchase or application.

  • Retail: Typically an add-to-cart
  • Travel: Typically the selection of an itinerary, room, etc. for booking
  • Banking: Typically the selection of an account to open
  • Insurance: Typically the selection of a policy to apply for

Configuration

Required fields

FieldValuesDefinition
categoryString. Valid value - BehaviorThe category of the signal. For behavioral signals the category should always be “Behavior”.
nameString The name assigned to the signal. Can contain specific information about the signal that differentiates it from other signals.
signalTypeString. For add-to-cart signals, use
addToCart.
The type of signal being sent. Must be from the set of supported signals.
productIdStringIdentifier of the product
productNameStringName of the product
quantityNumber or stringQuantity of the product added to cart. Can also be negative in the case that something was removed from cart.
priceNumber or stringCurrent price of the product including discounts
currencyStringCurrency in which the price of the product is being represented

Optional fields

FieldValuesDefinition
effectString. Valid values:

- negative
- positive
Describes the effect of the signal on engagement. It is intended to be used for engagement index scoring.
pageCategoryStringReflects the type of page e.g. home, listing, details, search, etc.
signalCustomAttributesStringAllows for custom attributes that are not predefined by the product
discountNumber or stringDiscounts from the original price in currency. Adding the discount to the unitPrice would total the original price.
productCategoryStringCategory the product falls in based on the product catalog
productUrlStringURL of the product
productImageUrlStringURL of the image of the product
shoppingCartUrlStringURL of the shopping cart that the add to carts are contributing to
virtualCategoryStringPromotional category such as "recently added".

Sample payload

{
    "signalType": "addToCart",
    "category": "Behavior",
    "name": "addToCart from product page",
    "productId": "10",
    "productName": "T-shirt",
    "quantity": 10,
    "shoppingCartUrl": "",
    "promotionId": "2",
    "effect": "positive"
}

All data in the SDK payload must be collected manually, there is no automatic binding to the payload fields.