> ## 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_content Event

> Track when a visitor views a product or content page

Fires when a visitor views a product or content page. This event is critical for remarketing audiences and conversion attribution.

<Note>
  **Shopify:** Automatically tracked when viewing product detail pages.
</Note>

## JavaScript

```javascript theme={null}
window._upstack('track', 'view_content', {
  items: [
    {
      id: 'SKU_12345',
      name: 'Classic Cotton Tee',
      price: 34.99,
      brand: 'Example Brand',
      category: 'Apparel/T-Shirts'
    }
  ],
  value: 34.99,
  currency: 'USD'
});
```

Minimal example:

```javascript theme={null}
window._upstack('track', 'view_content', {
  items: [{ id: 'SKU_12345', name: 'Classic Cotton Tee', price: 34.99 }],
  value: 34.99,
  currency: 'USD'
});
```

## Properties

| Property | Type   | Required | Description                                                             |
| -------- | ------ | -------- | ----------------------------------------------------------------------- |
| items    | array  | Yes      | Products viewed (see [Item Object](/pixel/standard-events#item-object)) |
| value    | number | Yes      | Product price                                                           |
| currency | string | Yes      | ISO 4217 currency code (e.g., `'USD'`)                                  |

## When to Fire

* Product detail page load
* Quick view modal open
* Collection page load (with collection products)

## Related Events

* [add\_to\_cart](/pixel/events/add-to-cart) — When adding the viewed product to cart
* [add\_to\_wishlist](/pixel/events/add-to-wishlist) — When saving the product for later
* [view\_category](/pixel/events/view-category) — When viewing a collection page
