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

# page_view event

> The page_view tracking event is used to record a page view with PureClarity and to tell PureClarity what page the user is viewing, along with context data.

The page\_view tracking event is used to record a page view with PureClarity and to tell PureClarity what page the user is viewing, along with context data.

<Note>
  Context data is important for PureClarity to be able to determine the correct zone and thus the best recommendations to show.
</Note>

## Properties

<ParamField body="page_type" type="string">
  Specifies the page type so PureClarity knows which zones to load

  **Possible values:** `homepage`, `search_results`, `category_listing_page`, `product_listing_page`, `product_page`, `added_to_basket`, `basket_page`, `order_complete_page`, `my_recommendations`, `my_account`, `content_page`, `landing_page`

  **Example:** `homepage`
</ParamField>

<ParamField body="product_id" type="string">
  Specifies the product context of the current page. Used to load recommenders relevant to a product page. The Id should match the Id used in the product feed

  **Example:** `P41923`
</ParamField>

<ParamField body="category_id" type="string">
  Specifies the category context of the current page. Should be set on product listing pages. The Id should match the Id sent in the category feed

  **Example:** `3841`
</ParamField>

<ParamField body="brand_id" type="string">
  Specifies the brand context of the current page. Used to set the context of a brand page. This Id should match the Id sent in the brand feed

  **Example:** `23`
</ParamField>

## Examples

### Homepage

```json theme={null}
{
  "page_type": "homepage"
}
```

### Product Page

```json theme={null}
{
  "page_type": "product_page",
  "product_id": "P41923"
}
```

### Category Listing Page

```json theme={null}
{
  "page_type": "category_listing_page",
  "category_id": "3841"
}
```

### Brand Page

```json theme={null}
{
  "page_type": "content_page",
  "brand_id": "23"
}
```
