Node SDK

page

Record server-rendered page views.

PageParams fields:

FieldRequiredTypeDescription
categoryfalsestringThe category of the page. Useful when many pages belong to one category, such as ecommerce pages.
namefalsestringThe name of the page.
propertiesfalseobjectA dictionary of page properties. Keep values free of secrets and raw user input.
timestampfalsestring | DateThe time the page view occurred.
contextfalseobjectAdditional context about the page view, such as its source.
integrationsfalseobjectPer-call destination controls that enable or disable specific integrations.
messageIdfalsestringAn application-provided identifier used to deduplicate the page event.
userId or anonymousIdfalsestringIdentifies the user associated with the page view.

Keep URLs and page properties free of secrets and raw user input.