recordPageView
recordPageView(
context):boolean
Defined in: analytics.ts:275
Record the page view: once per page load per organization and campaign, whatever number of islands or calls the page makes. It is how a site visit is counted at all: a visit where no island was seen and nothing was clicked still sends this one event. A page view is never an impression and never a site action. Client-side route changes in a single-page app are not new page views.
Islands call it when they mount; a page without islands can call it itself. No-op outside a browser, without a campaign id, or when the viewer has Global Privacy Control or Do Not Track on. Returns true only for the call that sent it.
Parameters
Section titled “Parameters”context
Section titled “context”Returns
Section titled “Returns”boolean