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. Type of the event. | view |
name | string | Required. Name of the event. | page |
value.context.page.uri | string | Required. URI of the page that the user visited. | n/a |
value.context.page.title | string | Optional. The title of the page. | n/a |
value.context.page.referrer | string | Required if the page URL was clicked from a referrer channel. 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. A 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.
If you have suggestions for improving this article, let us know!