Enable add-to-cart signals in the Connect web library

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

Availability

The add-to-cart signal is included into all Connect subscriptions (Pro, Premium and Ultimate).

Configuration

The Connect library provides a method, TLT.logSignal() with which to send the signal to the Acoustic Connect endpoint, as a JSON object. The Connect library must be initialized before the method is called.

Required fields

FieldValuesDefinition
categoryString. Valid value - Behavior. The category of the signal. Do not edit.
currencyStringCurrency in which the price of the product is being represented
effectString. Valid values:

- negative
- positive
Describes the effect of the signal on engagement. It is intended to be used for engagement index scoring.

We suggest sending positive for all add-to-cart signals.
nameString, up to 256 charactersAssign a name to the signal to differentiate it from other signals.
productIdStringThe identifier of the product. It may coincide with the SKU.
productNameStringThe name of the product
quantityNumberCaptures the quantity of the product added to cart.
signalTypeString. Valid value -
addToCart.
The type of signal to enable. Do not edit.
unitPriceNumber or stringThe unit price of the product

Optional fields

FieldValuesDefinition
signalCustomAttributesArray of objectsAllows for additional custom attributes. For each custom attribute, add an object with two string fields:name and value.

Example

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