> ## Documentation Index
> Fetch the complete documentation index at: https://docs.upstackdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# View Cart: Track Shopping Cart Views

> Track view cart events on your Shopify store. Understand how often visitors view their shopping cart before checkout.

<Tip>
  View Cart measures the total number of times visitors viewed their shopping cart on your site.
</Tip>

## Formula

<Info>
  **View Cart** = **COUNT** ( view\_cart events )
</Info>

### Formula Components

| Metric                | Definition                                         |
| --------------------- | -------------------------------------------------- |
| **view\_cart events** | Each time a visitor views their shopping cart page |

| Metadata        |                         |
| --------------- | ----------------------- |
| **Type**        | Number                  |
| **Data Source** | [Upstack Pixel](/pixel) |
| **Aggregation** | Count                   |

***

## Example

Your Shopify store recorded **4,230 view cart events** last month from **3,150 unique sessions**.

| Period | View Carts | Add to Carts | Conversion |
| ------ | ---------- | ------------ | ---------- |
| Week 1 | 1,052      | 890          | 24.8%      |
| Week 2 | 1,089      | 912          | 25.1%      |
| Week 3 | 1,021      | 875          | 24.2%      |
| Week 4 | 1,068      | 901          | 24.6%      |

***

## How It Works

The Upstack pixel fires a view\_cart event whenever a visitor navigates to the shopping cart page. Each cart view is counted, including multiple views from the same session. This metric helps you understand shopping intent and cart abandonment patterns.

***

## When to Use

| Scenario                  | Action                                                     |
| ------------------------- | ---------------------------------------------------------- |
| Cart abandonment analysis | Compare view carts to checkouts initiated to find drop-off |
| UX optimization           | Track if cart page changes affect view frequency           |
| Campaign evaluation       | Measure which traffic sources generate cart engagement     |
| Funnel diagnostics        | Identify bottlenecks between add-to-cart and checkout      |

***

## Related Metrics

| Metric                                                                        | Relationship                                  |
| ----------------------------------------------------------------------------- | --------------------------------------------- |
| [Add to Carts](/reference/metrics/funnel/engagement/add-to-carts)             | Previous funnel step — products added to cart |
| [Initiate Checkouts](/reference/metrics/funnel/engagement/initiate-checkouts) | Next funnel step — checkout process started   |
| [Purchases](/reference/metrics/funnel/conversions/purchases)                  | Final conversion — completed orders           |

[See all Engagement metrics →](/reference/metrics/funnel/engagement)
