# Product List Tracking

## Product List Tracking

The `productlist` tracking type is used when multiple products are displayed together in a list—for example, on a category page, homepage slider, or product grid.

Each product in the list should be tracked with `type: "productlist"`, and a summary `track: "productlist"` object defines metadata for the list context.

***

### Tracking Commands

* `product`
* `productlist`
* `submit`

***

### Product Example

```javascript
_jts.push({
  track: "product",
  type: "productlist",
  id: "12345567",
  name: "Product Name"
});
```

### Product List Object

```javascript
_jts.push({
  track: "productlist",
  listname: "main-slider",
  categorypath: ["category1", "category2"]
});
```

### Submit State

```javascript
_jts.push({ track: "submit" });
```

***

### Properties for `productlist`

| Name           | Description                                       | Type   | Mandatory | Example                      |
| -------------- | ------------------------------------------------- | ------ | --------- | ---------------------------- |
| `listname`     | A meaningful name for the product list            | string | yes       | `"main-slider"`              |
| `categorypath` | Breadcrumb-style path of categories for this list | array  | no        | `["category1", "category2"]` |

***

Make sure every product in the list uses the same `type: "productlist"`, and the summary object is submitted before calling `track: "submit"`.

For more on how this links to other product tracking types, see the [](https://docs.jentis.com/data-capture/web-tracking-setup/set-up-jentis-data-layer/e-commerce-tracking "mention").
