Crawling, robots & indexing directives

rel="canonical" Link Tag

Signals your preferred representative URL when duplicate or near-duplicate versions of a page exist. Google treats canonical tags as strong hints, not commands.

Verified

Syntax / Example

<link rel="canonical" href="https://www.example.com/blog/guide" />

Verify On A Live URL

curl -sL https://example.com/page/ | grep -i "rel=\"canonical\""
Metric or RuleDocumented ValueSource
Mobile pages with a canonical tag67%HTTP Archive Web Almanac 2025 (SEO Chapter)Checked November 25, 2026
Pages where JS rendering changed canonical3.02%

On ~2% of pages, a canonical appeared only after JavaScript rendering.

HTTP Archive Web Almanac 2025 (SEO Chapter)Checked November 25, 2026
Google compliance levelHint, not a strict directiveGoogle: Consolidate Duplicate URLs (Canonical)Checked November 25, 2026

Official Specification & Google Behavior

Google groups duplicate URLs into clusters and chooses one canonical to index and serve. Its guide states Google "may choose a different page as canonical than you do."

SEO & Indexing Impact

Consolidates link signals onto one URL; a misconfigured canonical pointing to another page (or the homepage) strips indexing and backlink credit from the current URL.

Backlink Monitoring Verdict
Check the canonical href in both raw HTML and rendered DOM. Ahrefs' link rot study counts links sitting on pages with foreign canonicals as effectively lost.

Common Pitfalls

  • Pointing paginated pages or guest posts canonically to the homepage removes them from the index.
  • Injecting a different canonical via client-side JavaScript creates conflicting signals between raw HTML and rendered DOM.

Frequently Asked Questions

Does Google always obey my rel=canonical tag?
No, Google treats canonical tags as strong hints and may select a different URL if redirects, internal links or sitemaps disagree.
Should canonical URLs be absolute or relative?
Google recommends using full absolute URLs including https:// and the preferred hostname.
How does a foreign canonical affect a backlink?
If a linking page canonicalizes to a different URL, search engines may drop the linking page from the index and ignore links on it.

Primary Sources

Verified

Related Research Guides