---
title: "VIEW event"
slug: "view-event-1166466"
abstract: "Describes the event object for a VIEW event in the Boxever JavaScript Library (Sitecore CDP Stream API)."
---
# VIEW event

The event object for a VIEW event must include all the [required attributes for event objects](https://doc.sitecore.com/cdp/en/developers/api/stream-api/bx-js-library-legacy-reference/objects-1166464/event-object.html#UUID-9f8f6e1a-da8b-6bc6-f778-4468525242e9_UUID-97825386-9ff8-1c1e-31fc-a50ce09e734c "Required attributes"). No further attributes are required.

## Example

This example describes an event object for a VIEW event in an integration that uses the Boxever JavaScript Library. The `browser_id` is set to the value that the `[Boxever.getID()](../../functions-1166463/bx-getid.md "Boxever.getID()")` function returns.

```javascript
const viewEvent = {
    browser_id: Boxever.getID(),
    channel: "WEB",
    type: "VIEW",
    language: "EN",
    currency: "EUR",
    page: "home",
    pos: "myretailsite/ireland",
};

```