Technical SEO
Canonical Tags Explained: How Google Chooses the URL It Shows
How canonicalization works, which signals Google weighs, and how to set canonicals that Google actually follows.
Most websites serve the same content at more than one URL: with and without www, with tracking parameters, through filters and sorting, or in printer-friendly versions. Google groups these duplicates and picks one URL, the canonical, to show in search results.
A canonical tag is how you tell Google which version you prefer. It’s a strong hint, not a command, so it works best when your redirects, internal links and sitemap all point the same way.
Short answer: A canonical tag (<link rel="canonical" href="…">) tells Google which URL is the preferred version of duplicate or very similar pages. Google treats redirects and canonical tags as strong signals and sitemap inclusion as a weak one. Use absolute URLs, a self-referencing canonical on each main page, and make internal links and sitemaps point to the same URL.
Key Takeaways
- Canonicalization is how Google picks one URL from a set of duplicates; your tag is a strong hint, not an order.
- Redirects and rel=canonical are strong signals; sitemap inclusion is weak.
- Don’t use robots.txt or noindex to choose a canonical within your own site.
- Make every signal agree: tag, redirects, internal links, sitemap and hreflang.
- When Google picks a different canonical, compare the two pages in URL Inspection.
What a canonical tag looks like
The tag goes in the <head> of the page:
<link rel="canonical" href="https://www.example.com/blue-running-shoes/" />
For files that have no HTML head, such as PDFs, the same signal can be sent as an HTTP header: Link: <https://www.example.com/guide.pdf>; rel="canonical". Google suggests picking one method rather than combining the tag and the header, because mixing them is more error-prone.
How Google decides: signal strength
| Method | Strength | When to use |
|---|---|---|
| Permanent redirect (301/308) | Strong | When the duplicate URL should stop existing for visitors |
| rel=canonical (tag or header) | Strong | When both URLs must stay accessible (filters, tracking parameters, syndicated copies) |
| Sitemap inclusion | Weak | Always list only canonical URLs; it reinforces the other signals |
Google also considers HTTPS over HTTP, internal links and hreflang clusters. If you declare nothing, Google picks what it judges to be the best version. Combining methods that agree increases the chance your preferred URL is shown.
Rules that prevent most canonical problems
- Use absolute URLs in canonical tags, not relative paths.
- Add a self-referencing canonical on every main page.
- Link internally to the canonical URL, not to parameter or alternate versions.
- List only canonical URLs in your sitemap.
- Don’t send mixed signals, such as a sitemap URL that differs from the page’s canonical.
- Don’t use robots.txt for canonicalization: blocked URLs can still be indexed without content.
- Don’t use noindex to pick a canonical within one site; it removes the page from search entirely.
- Don’t point to a URL fragment (#section) as canonical.
- Put the canonical in the HTML source. If JavaScript must set it, make sure it doesn’t change an existing one.
Common situations and the right canonical
| Situation | Recommended approach |
|---|---|
| http:// and https://, or www and non-www | Permanent redirect to one version; canonical tags on that version |
| Tracking parameters (?utm_source=…) | Canonical to the clean URL |
| Sorted or filtered category pages | Canonical to the main category unless the filtered page is a distinct, useful landing page |
| Product in several categories with different URLs | Canonical to one product URL; link internally to that URL |
| Paginated lists (page 2, 3…) | Each page normally self-canonical; don’t point page 2 at page 1 if it lists different items |
| Syndicated article on another site | Ask the publisher to add a canonical to your original |
| Separate mobile URLs (m.) | Canonical on the mobile page to desktop, plus rel=alternate from desktop |
Canonical tags that include hreflang, lang, media or type attributes are ignored for canonicalization. Use rel=”alternate” for language and mobile alternates.
When Google chooses a different canonical
Search Console reports this as “Duplicate, Google chose different canonical than user”. Open the page in URL Inspection and compare the user-declared canonical with the Google-selected one. Then check:
- Is your declared canonical actually a duplicate of this page? Google needs the content to be very similar.
- Do internal links mostly point to the other URL?
- Does the sitemap list the other URL?
- Is there a redirect pointing to the other URL?
- Is your preferred URL on HTTP while the other is HTTPS, or does it have certificate problems?
- Is the preferred page noindexed, blocked or returning an error?
Make every signal point to the URL you want, then wait for recrawling. Sometimes Google’s choice is reasonable, and the better move is to accept it and update your tags. More indexing reasons are covered in how to fix indexing problems.
Canonicals on e-commerce sites
Stores generate duplicates quickly: filters, sort orders, product variants and the same product in several collections. Decide which pages deserve to rank (usually categories and main product URLs) and canonicalize the rest to them. For variants, keep one product URL unless variants are genuinely different products. If you also run Google Shopping, keep feed links consistent with your canonical product pages; see aligning product pages with your feed. Our e-commerce SEO service covers faceted navigation in depth.
How to audit canonicals
- Crawl the site and export each URL’s status code and canonical.
- Flag pages with no canonical, relative canonicals, or canonicals pointing to redirects, 404s or noindexed pages.
- Flag canonical chains (A → B, B → C) and loops.
- Compare canonicals with sitemap URLs and internal link targets.
- Spot-check key pages in URL Inspection for the Google-selected canonical.
Canonical issues often appear alongside redirect and sitemap problems, so audit them together using the technical SEO checklist.
Frequently asked questions
Is a canonical tag a directive?
No. Google treats it as a strong signal and may choose a different canonical if other signals disagree or the pages aren’t really duplicates.
Should every page have a self-referencing canonical?
Google recommends a self-referential canonical on the canonical page itself. It protects against parameter and tracking-code duplicates.
Can I use noindex instead of a canonical tag?
Not for choosing between duplicates on your own site. Noindex removes the page from search completely, while a canonical consolidates signals into the preferred URL.
Do canonical tags pass link signals?
Canonicalization consolidates duplicate URLs into one, which is why it’s used for duplicates. Redirects are the strongest way to consolidate a URL that should no longer be visited.
Can a canonical point to another domain?
Yes, for content legitimately published on several sites, such as syndicated articles. The pages still need to be near-duplicates.
Want a second pair of eyes on your technical SEO?
We review crawling, indexing, rendering and speed issues by hand and give you a prioritized list of fixes, starting with a free manual audit.
Sources
- Google Search Central: How to specify a canonical URL
- Google Search Central: Redirects and Google Search
- Search Console Help: URL Inspection tool
- Search Console Help: Page indexing report
- Google Search Central: Build and submit a sitemap
Last reviewed October 12, 2026.
