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
Field | Values | Definition |
---|---|---|
category | String. Valid value - Behavior . | The category of the signal. Do not edit. |
currency | String | Currency in which the price of the product is being represented |
effect | String. 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. |
name | String, up to 256 characters | Assign a name to the signal to differentiate it from other signals. |
productId | String | The identifier of the product. It may coincide with the SKU. |
productName | String | The name of the product |
quantity | Number | Captures the quantity of the product added to cart. |
signalType | String. Valid value -addToCart . | The type of signal to enable. Do not edit. |
unitPrice | Number or string | The unit price of the product |
Optional fields
Field | Values | Definition |
---|---|---|
signalCustomAttributes | Array of objects | Allows 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"
}
Updated 8 days ago