@99devco/analytics - v3.1.0
    Preparing search index...
    • Records the current page view by collecting the normalized URL, referrer, timezone, SDK version, and calculated page-count, then dispatching a tracking pixel to the configured API endpoint.

      When called without overrides the function:

      1. Reads { actualUrl, recordUrl } from getURL() so canonical/meta overrides are respected while still tracking refresh detection.
      2. Reads { actualReferrer, recordReferrer } from getReferrer() so the recorded referrer can differ from the in-session navigation path.
      3. Computes the page count via getPCount() to understand the visit depth.
      4. Skips recording if a refresh is detected and trackPageRefreshes is false.
      5. Persists the new pcount and referrer values for the next navigation.

      Parameters

      • Optionalurl: string

        Optional override for the recorded URL path (defaults to recordUrl)

      • Optionalreferrer: string

        Optional override for the recorded referrer path (defaults to recordReferrer)

      Returns void

      // Record the current page view using canonical/meta data
      recordView();

      // Record a virtual page view for in-app navigation
      recordView("/pricing", "/features");