Skip to main content
Set the path for tracking in single-page applications. Use before calling trackPageView to track the correct page.

Usage

Single-Page Application Example

Notes

  • Essential for tracking page views in single-page applications.
  • Always call setPath before trackPageView to ensure accurate tracking.
  • The path should start with a forward slash (/).
Last modified on April 17, 2026