Skip to main content

Canonical URLs

Our Analytics script checks the validity of canonical URLs, which must be absolute URLs. This is necessary because the script requires the domain to function correctly. If a canonical URL is invalid, it defaults to the current URL to ensure accurate data collection.

Valid Canonical URL

<link rel="canonical" href="https://example.com/page" />

Invalid Canonical URL (relative path)

<link rel="canonical" href="/page" />