> ## 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 page loads

Fires when a page loads.

## Example

```javascript theme={null}
window._upstack('page', {
  // User data
  email: 'jane@example.com',

  // Custom data
  pageCategory: 'product',
  collectionName: 'summer-2026'
});
```

Use `window._upstack('page')`, not `track`. On single-page apps, call it on each route change.

## Standard parameters

This event has no standard parameters. Upstack captures the page URL, title and referrer for you.

## User data

| Name | Type | Required | Example value | Description |
| - | - | - | - | - |
| [`email`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/email) | `string` | Yes\* | `jane@example.com` | Email address. |
| [`phone`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/phone) | `string` | Yes\* | `+15551234567` | Phone number in E.164 format. |
| [`firstName`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/name) | `string` | No | `Jane` | First name. |
| [`lastName`](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/name) | `string` | No | `Smith` | Last name. |

\* Required once you know it.

## Custom data

Examples for this event. See [how custom data works](https://docs.upstackdata.com/event-tracking/event-taxonomy/properties/custom-data.md).

| Name | Type | Example value | Description |
| - | - | - | - |
| `pageCategory` | `string` | `product` | The type of page, such as `product` or `blog`. |
| `collectionName` | `string` | `summer-2026` | The collection the page belongs to. |

## Related events

* [`view_content`](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events/view-content) — A visitor views a product.
* [`view_category`](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events/view-category) — A visitor views a category or collection.
* [`search`](https://docs.upstackdata.com/event-tracking/event-taxonomy/standard-events/search) — A visitor searches your site.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.