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

# page_view Event

> Track when a visitor loads a page on your site

Fires when a visitor loads a page. This is the foundation of all analytics — every page load should trigger this event.

<Note>
  **Shopify:** Automatically tracked by the Upstack Pixel on all page loads.
</Note>

## JavaScript

```javascript theme={null}
window._upstack('page');
```

With custom properties:

```javascript theme={null}
window._upstack('page', {
  pageCategory: 'product',
  collectionHandle: 'summer-2026'
});
```

## Properties

| Property         | Type   | Required | Description                                             |
| ---------------- | ------ | -------- | ------------------------------------------------------- |
| pageCategory     | string | No       | Page type (e.g., `'product'`, `'collection'`, `'blog'`) |
| collectionHandle | string | No       | Collection identifier for collection pages              |

## Auto-Captured

The SDK automatically captures `page_url`, `page_title`, `page_referrer`, and `page_path`.

## When to Fire

* On initial page load
* On SPA route changes
* After dynamic content loads (infinite scroll)

## Related Events

* [view\_content](/pixel/events/view-content) — When viewing a specific product
* [view\_category](/pixel/events/view-category) — When viewing a collection page
* [search](/pixel/events/search) — When viewing search results
