A canonical tag tells search engines which URL is the main version of a page. Used well, it combines duplicates into one strong URL. Used badly, it can quietly send Google to the wrong page, or to a page that does not exist.
What a canonical tag looks like
<link rel="canonical" href="https://example.com/shoes/running" />It goes in the <head> of the page. It says: “if you find copies of this content at other URLs, treat this one as the original.”
Why canonicals matter
The same content often lives at several addresses:
http://andhttps://versionswwwand non-wwwversions- URLs with tracking parameters, such as
?utm_source=newsletter - Sorted or filtered product lists, such as
?sort=price - The same product reachable through several category paths
Google picks one URL to index from each group. A canonical tag is a strong hint about which one you prefer, not an order. Google weighs it alongside redirects, internal links and your sitemap, so all of them should agree.
The 7 most common canonical mistakes
1. No canonical at all
Without one, Google guesses. It usually guesses well, but parameter URLs and duplicates can split signals. Fix: add a self-referencing canonical to every indexable page, meaning a canonical that points to the page’s own clean URL.
2. Every page points to the homepage
A theme or plugin bug can print the homepage URL as the canonical on every page. Google may then ignore your inner pages as duplicates of the homepage. Fix: view the source of a few inner pages and make sure each canonical matches that page’s own URL.
3. Relative or wrong-protocol URLs
href="/shoes" or href="http://example.com/shoes" on an HTTPS site invites mistakes. Fix: always use the full, final address, including https:// and your preferred www choice.
4. Pointing to a redirect, 404 or noindexed page
A canonical should point to a page that returns HTTP 200 and can be indexed. Pointing at a redirect or a missing page sends mixed signals, and pointing at a noindexed page asks Google to index something you have blocked. Fix: after a site migration, update canonicals to the new final URLs.
5. More than one canonical tag
Two plugins, or a theme plus a plugin, can each print a canonical. If they disagree, Google may ignore both. Fix: search the page source for rel="canonical" and keep exactly one.
6. Canonical outside the head, or only added by JavaScript
Google only reads canonical links in the <head>. A tag that lands in the <body>, often because of an invalid element above it, is ignored. One that is changed by JavaScript can conflict with the server’s version. Fix: output the canonical in the server-rendered <head>.
7. Paginated pages pointing to page 1
Page 2 of a blog archive or product list has different items from page 1. Canonicalising it to page 1 can stop Google from discovering what is linked there. Fix: give each paginated page its own self-referencing canonical.
How to check your canonicals
- Page source: press
Ctrl+Uand search forcanonical. Check there is exactly one, in the head, with an absolute URL. - Search Console: URL Inspection shows the “User-declared canonical” and the “Google-selected canonical”. If they differ, Google disagrees with your hint.
- SEOAlertly: a site check flags sampled pages with a missing or invalid canonical link.
When Google chooses a different canonical
If Search Console shows “Duplicate, Google chose different canonical than user”, make your signals agree:
- Redirect duplicate versions (HTTP, non-www) to the preferred URL with a 301.
- Link internally to the preferred URL only.
- List only preferred URLs in your XML sitemap.
- Make sure the preferred page really is the most complete version of the content.
Canonical problems are one of several reasons a page goes missing. See why your page is not indexed for the full checklist.
