Skip to content

Event: Product Added To Basket

This event should be used when a customer adds a product to their shopping cart.

Expected properties.


All properties are optional. If any property is missing it will not be processed and no error will be reported.

Name Expected type Example
price float 10.99
quantity int 2
sku string 1234
id string Product ID: 5678
name string Blue T-Shirt url ""
brand string Nike
variant.color string Blue
url.image url ""
variant.size string Medium string Blue T-Shirt - Medium
category string Clothing > T-Shirts > Men's

Auto indexing

Auto indexing helps to make data easy to find by creating a structure that organizes the data. This structure is made by copying information from the different parts of the data and putting it into a specific format that can be used to analyze and group the data. This is particularly helpful when dealing with unstructured data that needs to be organized in order to be useful.

This table describes which event property will be copied to event traits.

Event trait Event properties id name
ec.product.sku sku
ec.product.category category
ec.product.brand brand
ec.product.variant variant
ec.product.price price
ec.product.quantity quantity

Copy event data to profile

Data will not be copied to profile.

JSON example

  "type": "product-added-to-basket",
  "properties": {
    "price": 19.99,
    "quantity": 2,
    "sku": "TSB001",
    "id": "12345",
    "name": "Black T-Shirt",
    "url": {
      "page": ""
    "brand": "Example Brand",
    "variant": {
      "color": "Black",
      "size": "M",
      "name": "Black T-Shirt - M"
    "category": "Clothing"