---
title: "Page view event"
slug: "page-view-event"
abstract: "Explains composition and usage of the Sitecore Discover page view event object."
---
# Page view event

The `page view` event (`view:page`) must be sent when a user views a page on the site. Sitecore Discover beacon usually sends page visits but if the beacon is absent, then the customer must send this event.

This event is used in:

- Overall page view metrics.
- Search Ranking based on views.

The following table lists the properties of the `page view` event:

| Name | Type | Description | Value |
| --- | --- | --- | --- |
| `type` | string | Required.<br><br>Type of the event. | `view` |
| `name` | string | Required.<br><br>Name of the event. | `page` |
| `value.context.page.uri` | string | Required.<br><br>URI of the page that the user visited. | n/a |
| `value.context.page.title` | string | Optional.<br><br>The title of the page. | n/a |
| `value.context.page.referrer` | string | Required if the page URL was clicked from a referrer channel.<br><br>Channel referrer that led the user to click on this URL. Used to trigger rules based on referrer URL. | n/a |
| `value.context.page` | object | Required if the site is set up with locale configuration.<br><br>A [page object](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/events-data-model/event-specifications/funnel-events/the-page-object.md "The page object") containing page-specific information, including locale. | n/a |

## Sample event specification

The following is an example of a `page view` event object. This example is in the new format, which means it contains a `context` object.

```JSON
{
  "type": "view",
  "name": "page",
  "value": {
    "context": {
      "page": {
        "uri": "/rfk/collection/handbags",
        "title": "Handbags",
        "referrer": "https://www.google.com/",
        "locale_country": "<country code, 2 letters, lowercase, e.g. fr>",
        "locale_language": "<language code 2 letters, lowercase, e.g. en>",
        "locale_currency": "<currency code, 3 letters, lowercase, e.g. eur>"
      }
    }
  }
}
```