trackHistoryChanges property

String? trackHistoryChanges
final

Web specific

Provides advanced configuration options for tracking page views in a single-page application.

Options:

  • all: Track page view events on any navigation change to the URL, including changes to the URL fragment. For example, navigating from https://amplitude.com/#company to https://amplitude.com/#blog.

  • pathOnly: Track page view events only on navigation changes to the URL path. For example, navigating from https://amplitude.com/company to https://amplitude.com/blog.

If omitted, the default behavior is to track page view events on any navigation change to the URL. See docs

Implementation

final String? trackHistoryChanges;