LANDSCAPE

page

Emit a $pageview with the current URL, path, and title.

Record a page view

import { page } from "@hyperreal/landscape-core";

page({ path: "/pricing", title: "Pricing" });

Signature

function page(properties?: EventProperties): void

Behavior

Emits $pageview with url, path, and title from the DOM when available, then your properties. Extra keys override url, path, or title.

Resets scroll-depth thresholds for the new page.

No-ops when consent is denied.

Defaults

init already emits one $pageview in the browser. Set autocapture: { pageViews: false } to skip it.

$path, $referrer, and UTM metadata are recomputed on each emit.