Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP Developer Documentation
  • Developing with Sitecore CDP
                • VIEW event
                • IDENTITY event
                • SEARCH event
                • Custom events
            • Flow object
        • Troubleshooting
        • Release notes
  1. Event object
  1. Sitecore CDP Developer Documentation
  2. Stream API

VIEW event

The event object for a VIEW event must include all the required attributes for event objects. 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.

const viewEvent = {
    browser_id: Boxever.getID(),
    channel: "WEB",
    type: "VIEW",
    language: "EN",
    currency: "EUR",
    page: "home",
    pos: "myretailsite/ireland",
};
If you have suggestions for improving this article, let us know!

© Copyright , Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use
CDPCloud Portal