pageViews property

PageViews pageViews
final

Web specific

Configures autocapturing page view events. See docs for more information.

Use PageViewsOptions for granular control, or PageViewsEnabled/ PageViewsDisabled to toggle it.

Defaults to PageViewsDisabled. On Flutter, navigation is captured cross-platform by AmplitudeNavigatorObserver via screenViews ([Amplitude] Screen Viewed), which is consistent with iOS and Android; the web-only, URL-based page view autocapture is therefore opt-in so a navigation is not double-counted as both a screen view and a page view. Enable it (e.g. pageViews: PageViewsOptions()) if you also want the Browser SDK's [Amplitude] Page Viewed events.

Implementation

final PageViews pageViews;