@99devco/analytics - v2.0.0
    Preparing search index...
    • Gets the current page URL based on navigation type and available meta information. The function follows this priority order:

      1. 99dev page meta tag
      2. Canonical link
      3. Hash or History browser API (per configuration)

      For History API navigation, the function will:

      • Use the current pathname
      • Include search parameters if present
      • Use state.url if available in the history state

      Returns string

      The current page URL path (without origin)

      // With meta tag
      // <meta name="99dev-page" content="https://example.com/about">
      getURL(); // returns "/about"

      // With hash navigation
      // URL: https://example.com/#/products
      getURL(); // returns "/products"

      // With History API
      // URL: https://example.com/products?page=2
      getURL(); // returns "/products

      // With History API and state
      // history.pushState({ url: '/custom-path' }, '', '/products')
      getURL(); // returns "/custom-path"