Skip to main content
Version: current (0.10)

Page View

Records a page view — the backbone of every attribution report. The first page view is captured automatically when the SDK loads; call pageView yourself on client-side route changes in a single-page app.

LuciaSDK.pageView(page: string): Promise<void>

Example

LuciaSDK.pageView(window.location.pathname);
Already using the SDK?

These examples assume the SDK is installed and initialized. New to it? Start with the Quickstart — the SDK API Reference covers every install option.