@99devco/analytics - v2.0.0
    Preparing search index...

    Function watch

    • Starts watching for navigation changes and records page views automatically. Supports both hash-based and History API-based navigation.

      Returns () => void

      A function that removes the watcher when called

      // Start watching using default navigation type from init()
      const unwatcher = watch();

      // Stop watching
      unwatcher();