Canonical Tags: Fix Duplicate Content Without Losing Rankings
A canonical tag tells Google which URL is the main copy of a page. Here's when to use one, when a redirect beats it, the mistakes that make Google ignore it, and how to check what Google picked.
A canonical tag tells Google which URL is the main version of a page when several URLs show the same content. It's one line in the head: a link element with rel="canonical". Google treats it as a strong hint, not an order. Use it when duplicates must stay live. Use a redirect when they don't.
Duplicate URLs are normal. Tracking parameters, filters, trailing slashes and HTTP leftovers all create them. Google's canonicalization docs say plainly that some duplicate content is normal and isn't a spam violation. The cost is quieter. Clicks, links and reports split across URLs that should be one.
This explainer covers the four ways to signal a canonical, which one to use when, the mistakes that make Google ignore you, and how to check what Google actually picked.
Key takeaways
- It's a hint. Google can and does pick a different canonical when your signals disagree.
- Redirects beat tags. If the duplicate doesn't need to exist, redirect it.
- Make every signal agree. Tag, sitemap, internal links and redirects should all name the same URL.
- Never canonicalize with robots.txt or noindex. Google says both are the wrong tool for the job.
- Check, don't assume. The URL Inspection tool shows the canonical Google chose.
Where do duplicate URLs come from?
Duplicate content on one site is almost always a URL problem, not a writing problem. Google lists the usual sources:
- Region variants: the same English page for the US and the UK.
- Device variants: separate mobile and desktop URLs.
- Protocol variants: HTTP and HTTPS versions both live.
- Site functions: sorting and filtering on category pages.
- Accidental variants: a demo or staging site left open to crawlers.
Add tracking parameters, trailing slashes and mixed case. One page can easily show up at six URLs. Google groups them into a cluster and picks one to show. That process is canonicalization. Your job is to make Google pick the URL you want.
How do you tell Google which URL is canonical?
Google's page on consolidating duplicate URLs lists four methods, from strongest to weakest.


| Method | Strength, per Google | Best for |
|---|---|---|
| Permanent redirect | Strong signal | Retiring a duplicate: old URLs, HTTP, www vs non-www |
| rel="canonical" link element | Strong signal | Duplicates that must keep working, like filters and parameters |
| rel="canonical" HTTP header | Strong signal | Non-HTML files such as PDFs |
| Sitemap inclusion | Weak signal | Helping at scale, alongside the others |
You can combine them, and you should. An XML sitemap is the weakest signal on its own, but it's cheap to get right. Google says it also prefers HTTPS over HTTP when choosing. It recommends linking internally to the canonical URL too, which reinforces the choice.
What does the tag look like?
It goes in the head of every duplicate, and on the canonical page itself:
<link rel="canonical" href="https://example.com/pricing" />
Three rules from Google's docs:
- Use absolute URLs. Relative paths can break, for example when a test site gets crawled.
- Add a self-referencing canonical. The main page should point to itself.
- Pick the element or the header, not both. Google says mismatched values between the two are error-prone.
For PDFs and other files, send the same value as a Link HTTP header. On JavaScript-heavy sites, Google asks you to put the canonical in the HTML source. If a script must set it, make sure no other script changes it later. The Next.js SEO guide covers this for that framework.
When should you use a canonical tag vs a redirect?
Here's my decision rule. Ask one question: does anyone need the duplicate URL to keep working?
| Situation | Use | Why |
|---|---|---|
| Old URL after a move or rename | 301 redirect | Nobody needs the old page |
| HTTP or www variant | 301 redirect | Same reason, site-wide |
| URLs with UTM or session parameters | Canonical tag | The links must still work for tracking |
| Sorted or filtered category pages | Canonical tag | Shoppers use the filters |
| Same product in two categories | Canonical tag | Both paths are real navigation |
| PDF copy of a web page | Canonical HTTP header | You can't put a tag in a PDF |
| Near-identical pages you wrote twice | Merge, then redirect | Two pages for one query is cannibalization |
That last row is common on content sites. Two posts answer the same question, which is keyword cannibalization. A canonical between them hides the problem. Merging them fixes it. The keyword cannibalization fix covers how to merge, and the redirects SEO guide covers the 301 redirect side. A free redirect map builder helps when you're mapping dozens of old URLs.
What mistakes make Google ignore your canonical?
Google's canonical troubleshooting page says Google may choose a different canonical even when you name one. These are the mistakes I see most, plus the ones Google calls out.
Signals that disagree. The tag says /pricing. The sitemap lists /pricing/. Internal links point to /pricing?ref=nav. Google sees three votes for three URLs. Google's best practices say don't name different canonicals through different methods.
Using robots.txt to canonicalize. Blocking a duplicate in robots.txt stops Google from reading its canonical tag. Google warns that disallowed URLs may still be indexed without their content. The robots.txt guide covers what that file is for.
Using noindex to pick a winner. Google says it doesn't recommend noindex for choosing a canonical within one site, because it blocks the page from Search completely.
Pointing at a page that isn't a duplicate. A canonical from a product page to the home page tells Google two different pages are the same. Google will usually ignore it.
Plugins writing the wrong URL. Google names CMS software and plugins that set canonicals or redirects to unintended URLs as a common cause. Staging domains in production tags are a classic.
Canonicals on language versions. Google says canonical annotations that carry hreflang, lang, media or type attributes are not used for canonicalization. For language and country versions, use hreflang and point each version's canonical at a page in the same language. The hreflang guide has the setup.
Canonical tags for syndicated content. Google's troubleshooting page now says canonicals aren't recommended for syndication, since copies often differ. It says partners should block indexing of your content instead.
How do you check which canonical Google chose?
Use the URL Inspection tool in Search Console. Paste a URL and it shows two fields: the user-declared canonical and the Google-selected canonical. If they match, you're done. If they don't, your signals disagree or the pages aren't true duplicates.
Then look at the Page indexing report. Search Console's Page indexing help page explains three canonical statuses:
| Status | What it means | Action |
|---|---|---|
| Alternate page with proper canonical tag | The page points to an indexed canonical | Nothing to do |
| Duplicate without user-selected canonical | Google found duplicates and picked one; you named none | Add a canonical if Google picked wrong |
| Duplicate, Google chose different canonical than user | You named one; Google indexed another | Investigate: compare in URL Inspection |
The example list on each status is capped at 1,000 rows, per the same page. On big sites, export and sample. The Google Search Console guide walks through the rest of the reports.
After a fix, be patient. Google's troubleshooting page says pages can stay in a duplicate cluster for up to two weeks. You can request indexing for key URLs, but that's quota-limited.
Worked example: one pricing page, three URLs
Say a SaaS startup checks the Performance report for its pricing page. Search clicks for the month come in on three URLs. The clean /pricing URL gets 410 clicks. A version with a UTM tag from an old newsletter gets 120. A trailing-slash version gets 70.


That's 600 clicks a month, split three ways. Nothing is broken for users. But every report on that page undercounts by a third. Links to the UTM version build value on the wrong URL.
The fix takes an hour:
- Add a self-referencing canonical on /pricing, as an absolute URL.
- Make sure the UTM version outputs the same canonical. Most frameworks do this if the tag ignores the query string.
- Redirect /pricing/ to /pricing with a 301, since nobody needs both.
- Update the sitemap and every internal link to the clean URL. The XML sitemap validator catches stray variants in the file.
- Check URL Inspection on all three a week later.
Canonical tag checklist
Run this on each template, not each page. Templates create most duplicates.
- Every page you want in search has a canonical that points to itself, as a full HTTPS URL.
- Filter, sort and tracking URLs point to the clean version.
- The sitemap lists only the main URLs. The XML sitemap guide covers the file rules.
- Internal linking uses the main URL, with the rules in the anchor text guide.
- No canonical points to a URL that redirects, is blocked or is set to noindex.
- Each language version uses hreflang, not a canonical to another language.
- Test and preview domains never show up in live tags.
Store platforms add their own twists. The Shopify technical SEO guide covers product and collection URL duplicates.
What should you do this week?
Pick your top 20 pages by clicks. Run each through URL Inspection and compare the two canonical fields. Fix any page where they differ, starting with signals that disagree. Canonicals are one piece of technical SEO and indexing. The technical SEO audit covers the rest, and my SEO and AEO service can run it with you.
FAQ
What is a canonical tag?
A canonical tag is a link element in the head of a page, written as rel canonical, that points to the URL you want search engines to treat as the main version. It tells Google that several URLs show the same content and which one should appear in search. Google treats it as a strong hint, not a command.
Should every page have a self-referencing canonical?
Yes. Google's own documentation recommends adding a canonical on the canonical page that points to itself. It protects you from tracking parameters, mixed case and other stray variants. Most modern CMS platforms add one by default, so check that it outputs the clean, absolute URL you expect.
Is it better to use a 301 redirect or a canonical tag?
Use a redirect when the duplicate URL doesn't need to exist for users, such as an old page or an HTTP version. Google calls redirects the strongest canonical signal. Use a canonical tag when both URLs must keep working, such as filtered category pages or URLs with tracking parameters.
Why did Google choose a different canonical than mine?
Usually because your signals disagree or the pages aren't true duplicates. Common causes are a sitemap listing one URL while the tag names another, internal links pointing at the duplicate, a CMS plugin writing the wrong URL, or pages that differ too much. Check the Google-selected canonical in the URL Inspection tool, then make every signal agree.
Can I use noindex instead of a canonical tag?
Not for choosing between duplicates on one site. Google says it doesn't recommend noindex for that job because it blocks the page from Search entirely. A canonical consolidates the duplicates onto one URL. Noindex removes the page. Use noindex only for pages that should never appear in search.
Do canonical tags work across different domains?
The most common cross-domain case is syndication, and there Google now advises against relying on canonical tags, because syndicated copies often differ from the original. Its troubleshooting guidance says partners should block indexing of the copy instead. So ask syndication partners to add noindex to their version rather than a canonical pointing to you.
More like this
SEO