# Cart View Tracking

## Cart View Tracking

The `cartview` tracking type is used when the shopping cart is displayed to the user—either on a dedicated page or via a modal/popup. This helps identify shopping intent and engagement before checkout.

### Tracking Commands

* `product`
* `cartview`
* `submit`

### Example

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

_jts.push({
  track: "cartview"
});

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

### Properties for `cartview`

The `cartview` command does not have additional properties.

Use `type: "cartview"` in the associated product object to correctly define the interaction context.

If cart items are not yet final, or if the user skips this view, you may also opt to directly track a `checkout` interaction instead.
