---
title: Basket page
slug: product-recommendations/docs/basket-page
docTags: 
createdAt: 2026-07-30T20:41:30.384Z
---

Quantity and unit price should match what the site visitor sees. So if there is a discount, the discounted price is provided.

| Name   |          |         | Description and usage                                                                                                                  |
| ------ | -------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| basket |          |         | Element containing basket specific sub-elements.                                                                                       |
|        | items    |         | List of checkout items.                                                                                                                |
|        |          | refCode | Product reference code.                                                                                                                |
|        |          | qty     | \[Number]<br />Quantity.                                                                                                               |
|        |          | price   | \[Number]<br />Unit price.                                                                                                             |
|        | currency |         | Currency code.                                                                                                                         |
|        | basketId |         | \[Optional]<br />Link a specific shopping basket in a Trigger campaign. See [Link to a specific basket.](docId\:t1mAS52OK8F8hR5-o5Jw8) |

See also [Currency codes](docId\:yyATCpesiOsKVcvzxHafN).

A basket page is tracked using the following script.

```csharp
{
      "type"   : "basket",
      "lang"   : "en-gb",
      "basket" : {
        "items"    : [{
          "refCode" : "PROD500",
          "qty"     : 2,
          "price"   : 25.5
        },
        {
          "refCode" : "PROD600",
          "qty"     : 4,
          "price"   : 12.0
        }],
        "currency" : "GBP"
      }
    }
```

This example illustrates a basket with 6 items.

- 2 units of PROD500 @ £25.50 each.
- 4 units PROD600 @ £12.00 each.

:::hint{type="info"}
**Note**
You can also add the `customAttributes` or `customer` elements to this page tracking request. For more information, see [Add customAttributes or customer elements (Optional)](docId\:x-UWMNCr7HCibp_1X8Mrx).
:::
