---
title: Wishlist page
slug: product-recommendations/docs/wishlist-page-javascript-api
docTags: 
createdAt: 2026-07-30T20:41:29.696Z
---

| Name     |       |         | Description and usage                              |
| -------- | ----- | ------- | -------------------------------------------------- |
| wishList |       |         | Element containing wish list specific sub-elements |
|          | items |         | List of checkout items.                            |
|          |       | refCode | \[String]<br />Product reference code.             |

A wish list page is tracked using the following script. The example shows a wish list with two items in total, PROD500 and PROD600.

```csharp
{
      "type"     : "wishlist",
      "lang"     : "en-gb",
      "wishList" : {	 "items" : [		     { "refCode" : "PROD500" },		     { "refCode" : "PROD600" }	           ]       }
    }
```

If a user’s wish list is empty, the page is tracked using the following script.

```csharp
{
      "type"     : "wishlist",
      "lang"     : "en-gb",
      "wishList" : {	 "items" : []       }
    }
```

:::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).
:::
