# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jentis.com/data-capture/web-tracking-setup/set-up-jentis-data-layer/e-commerce-tracking/cart-view-tracking.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
