Skip to main content
The set_basket tracking event sets the contents of the users basket in its entirety. This event is useful for PureClarity to associate strong buying signals for a given product for the user. Note, the context is an array of basket products.
Send an empty array to clear the basket.

Basket Item Properties

Each item in the basket array must contain:
id
string
required
The product Id of the item in the basketExample: P41923
qty
number
required
The amount of this product that is in the basketExample: 5
unitprice
number
required
The price of a single unitExample: 29.95

Example

[
  {
    "id": "P41923",
    "qty": 5,
    "unitprice": 29.95
  },
  {
    "id": "P41924",
    "qty": 2,
    "unitprice": 15.50
  }
]

Clear Basket

[]