What is a canonical tag?
What a canonical tag does, why self-referencing canonicals are the sensible default, and the homepage-canonical mistake that deindexes a whole site.
A canonical tag is a single line in a page’s HTML that names the preferred URL for a piece of content. When the same or nearly identical content is reachable at more than one address, the canonical tag tells search engines which address to treat as the real one — the one to index, rank and credit — and to fold the others into it.
What it looks like
A canonical tag lives in the <head> of the page and names the preferred URL as an absolute address:
<link rel="canonical" href="https://example.com/page" />
There should be exactly one per page, and the URL should be absolute — protocol and domain included — not a relative path. For non-HTML files such as PDFs, the same instruction can be sent as an HTTP Link header instead, since there is no <head> to put a tag in.
Why you need one
Most sites serve the same content at more URLs than they realize. Every one of these is a separate address to a search engine, even when they render an identical page:
Tracking parameters (?utm_source=…), http versus https, www versus the bare domain, a trailing slash or its absence, an explicit /index.html, uppercase versus lowercase paths, print or AMP versions, session IDs, and filter or sort parameters on category pages. Left alone, Google has to guess which one is primary, splits any ranking signals between them, and may index a version you never intended people to land on.
The canonical tag removes the guesswork. Point every variant at one chosen URL and their combined link equity and relevance consolidate onto that single page. Skip it and you get the report status duplicate without user-selected canonical, where Google picks for you — sometimes not the URL you would have chosen.
Self-referencing canonicals are normal
The most common and most useful pattern is for every page to declare a canonical pointing at itself. That sounds redundant, but it is not: it means that when someone reaches the page through a tracking parameter or a mistyped-case URL, the page in the HTML still announces its own clean address as the canonical one. Making self-referencing canonicals the default across a site quietly resolves the whole class of parameter duplicates without any per-page work.
A hint, not a directive
This is the part that trips people up. Unlike a noindex tag or a redirect, a canonical is advisory. Google weighs it alongside your internal links, your sitemap, your redirects and which version looks stronger, and if those signals point somewhere else it can and does choose a different canonical — the status duplicate, Google chose different canonical than user. The fix is never to shout the tag louder; it is to make every other signal agree with it.
The mistakes that cause real damage
Canonicalizing everything to the homepage. A surprisingly common misconfiguration where every page names the homepage as its canonical. Google reads it as “none of these pages are the real content” and drops them from the index. If your pages vanished after a theme or plugin change, check this first.
Canonical and noindex on the same page. These contradict each other — one says “index this other URL instead”, the other says “index nothing here”. Google gets mixed instructions and may honor the wrong one. Pick one mechanism per page.
Chained or broken canonicals. Page A points at B, B points at C. Each hop dilutes the signal and slows consolidation. Point every duplicate directly at the final destination. A canonical that names a URL which redirects, 404s or is itself noindexed is invalid and gets ignored.
Canonicalizing paginated pages to page one. Page 2 of a listing is not a duplicate of page 1 — it has different items. Each paginated page should canonical to itself, not to the first page, or the deeper items stop being discovered.
How to check yours
Our canonical tag checker reads the canonical a given URL declares and flags the common faults — a missing tag, a relative or wrong-protocol URL, a canonical that points somewhere that cannot be indexed. In Search Console, the URL Inspection tool goes one step further and shows both the user-declared canonical (your tag) and the Google-selected canonical (what it actually indexed); a gap between those two lines is the whole problem. When they agree, you get the healthy status alternate page with proper canonical tag, which is deduplication working exactly as intended.
If you suspect the underlying pages are genuinely duplicated rather than just variant URLs, the duplicate content checker confirms it, or run a full site check to see canonicals across every page at once.
Frequently asked questions
- What is a canonical tag?
- A canonical tag is a line of HTML — rel="canonical" — that names the preferred URL for a piece of content. When the same or near-identical content is reachable at several addresses, it tells search engines which one to index and rank, and to consolidate the duplicates onto it. It normally sits in the page's head and names an absolute URL.
- Does a canonical tag help SEO?
- Indirectly. A canonical tag is not a ranking factor on its own, but it stops duplicate URLs from competing with each other and splitting their signals, so the combined link equity and relevance land on one page instead of being diluted across several. That consolidation is what helps — the tag itself does not push a page up the results.
- Should every page have a self-referencing canonical?
- Yes, as a default it is good practice. A page that declares itself as its own canonical still announces its clean address when someone arrives through a tracking parameter or a differently-cased URL, which quietly resolves the whole class of parameter duplicates without per-page work. The exceptions are pages you deliberately want consolidated elsewhere, which should point at that other URL.
- What is the difference between a canonical tag and a 301 redirect?
- A 301 redirect sends both users and search engines to a different URL — the original is no longer reachable. A canonical tag leaves both URLs working and visitable but tells search engines which one to index. Use a redirect when a page has genuinely moved; use a canonical when you need the duplicate to stay accessible, such as a tracked or filtered version of a page.
- Why is Google ignoring my canonical tag?
- Because a canonical is a hint, not a directive, and Google weighs it against your other signals. If your internal links, sitemap or redirects point at a different URL than your canonical names, or the canonical target is weaker, redirects, or cannot be indexed, Google picks its own. The fix is to make every signal agree with the URL you want as canonical, not to change the tag alone.
- Can I canonicalize every page to my homepage?
- No — this is a damaging mistake. Pointing every page's canonical at the homepage tells Google that none of those pages is the real content, and it drops them from the index. Each page should either declare itself as its own canonical or point at the specific duplicate it consolidates onto, never at an unrelated page like the homepage.