The canonical tag is a line of code in the page’s <head> (<link rel="canonical" href="...">) telling Google: among all similar versions of this page, this is the original I want indexed and shown. It solves the duplicate-content issues common in ecommerce (sorting and filtering) and multi-version sites.
Any site with the same content under multiple URLs: product pages with sort parameters (?sort=price), http vs https, www vs non-www, print versions. Without canonical, Google splits ranking signals across versions and picks which to show — possibly the wrong one.
Every page should have a self-referencing canonical — that's the golden rule. The href must be absolute (https://...), and the target must return 200 and not be noindexed. When pointing to another page, make sure content is truly identical or near-identical.
Google treats canonical as a hint, not a directive — and ignores it when: it points to a 404 or blocked page, chains conflict (A→B, B→A), content differs wildly, or a redirect leads elsewhere. Audit canonicals regularly with a crawler like Screaming Frog.
These term pages are coming soon to the glossary.
A redirect permanently moves visitors and engines (old page disappears); canonical keeps both live for users but tells Google to prefer one in the index. Use redirects for deleted pages, canonical for similar versions that must stay.
Because stronger signals disagree: many internal links point to the other version, the sitemap lists it, or content differs. Align all signals on one version.
It solves 90% of natural cases (parameters, www versions). But if another site steals your content, canonical won't help — file a Google content-theft report.