Canonical Tag
An HTML element that helps webmasters prevent duplicate content issues by specifying the 'canonical' or preferred version of a web page.
Detailed Explanation
If you have the same content accessible via multiple URLs (e.g., `site.com/tool` and `site.com/tool?ref=nav`), the canonical tag tells Google which one is the master version. This consolidates 'link equity' and prevents search engines from penalizing your site for having duplicate content.
Quick Summary
A canonical tag (`<link rel="canonical" href="...">`) tells Google: 'When you find this page under multiple URLs, this is the one to index.' It consolidates ranking signals across duplicates instead of splitting them, and prevents thin/duplicate content penalties.
Key Takeaways
- Goes in `<head>`: `<link rel="canonical" href="https://example.com/page" />`.
- Use absolute URLs, relative paths are technically valid but error-prone.
- Self-referential canonicals (page pointing to itself) are best practice on every page.
- Canonical is a *hint*, Google can ignore it if signals conflict (different content, internal links).
- Cross-domain canonicals are valid (syndicated content can canonical back to the original).
When to use it
- E-commerce sites with sort/filter URL parameters (`?color=red`).
- AMP pages canonical to the desktop version.
- Pagination chains (some teams canonical all pages to page 1, generally not recommended).
- Print versions, PDF versions, and mobile-specific URLs.
- Cross-posted blog content canonical to the original publisher.
Common Mistakes
- Canonicalizing to a non-existent or noindexed page, wastes the signal.
- Mismatched canonical and `hreflang` declarations confuse multilingual sites.
- Canonicalizing all paginated pages to page 1, hides deep content from indexing.
- Self-canonical with the wrong protocol or trailing slash (http vs https, /page vs /page/).
- Using `canonical` instead of `301 redirect` when you really want to consolidate URLs.
Canonical Tag, Frequently Asked
Canonical vs 301 redirect, which to use?
Use 301 if both URLs shouldn't exist. Use canonical if both URLs should still be accessible but only one should be indexed.
Does canonical pass full link equity?
Mostly yes, similar to a 301, but Google sometimes treats it as a softer signal.
Can Google ignore my canonical?
Yes. It's a strong hint, not a directive. Conflicting signals (different content, internal linking patterns) can override it.