Quick answer: A canonical tag (rel="canonical") tells search engines which URL is the preferred version when several URLs show the same or very similar content. Google treats it as a strong hint, not a command, and weighs it with other signals such as redirects, internal links and sitemaps. Every indexable page should have a self-referencing canonical with an absolute URL, and duplicates should point to the main version.
Canonical tags solve a problem most site owners do not know they have. Your homepage might be reachable at four addresses: with and without www, with and without a trailing slash. A product might appear under three categories. A tracking parameter might create thousands of URL variations. Without guidance, Google picks a version itself, and it does not always pick the one you want.
How a canonical tag looks
<link rel="canonical" href="https://www.example.com/blue-widgets/" />It goes in the <head> of the page. For non-HTML files such as PDFs, you can send the same signal in an HTTP header.
Canonical signals ranked by strength
| Method | Strength | When to use |
|---|---|---|
| 301 or 308 redirect | Strong | The duplicate URL should not exist for users at all |
| rel=”canonical” tag | Strong | Users need both URLs, such as tracking or sorting variations |
| Inclusion in the XML sitemap | Weak | Supports the other signals; list only canonical URLs |
| Internal links | Supporting | Always link to the canonical version |
Google’s documentation lists redirects and rel=”canonical” as strong signals and sitemap inclusion as weak. The real lesson is alignment: when your tag, your links, your sitemap and your redirects all point to the same URL, Google almost always agrees.
Canonical tag best practices
- Use absolute URLs, including protocol and domain.
- Add a self-referencing canonical to every indexable page. It protects against parameter and tracking variations.
- Point to a 200 page. Never canonicalize to a redirect, a 404 or a noindex page.
- Use one canonical per page. Two conflicting tags, often one from the theme and one from a plugin, cause Google to ignore both.
- Keep it in the head and in the initial HTML where possible, rather than adding it with JavaScript.
- Link internally to the canonical URL, not to variations.
Common canonical mistakes
- Canonicalizing paginated pages to page 1. Page 2 of a category is not a duplicate of page 1. Each page in a series should usually have its own self-referencing canonical.
- Mixing noindex and canonical. They send conflicting messages. Pick the one that matches your intent.
- Cross-language canonicals. A French page should not canonicalize to the English page. Use hreflang to connect them, as explained in my hreflang guide.
- Canonicalizing different products to one product. If the content is genuinely different, a canonical is the wrong tool and Google will likely ignore it.
- Relative URLs or the wrong protocol, such as http on an https site.
When Google ignores your canonical
In Search Console’s Page indexing report, “Duplicate, Google chose different canonical than user” means Google saw your tag and disagreed. Common reasons:
- The pages are not actually duplicates.
- Internal links and the sitemap point to a different version than the tag.
- The canonical URL redirects, returns an error or is blocked.
- Another site has copied your content and Google sees the copy as stronger, which is rarer than people fear.
Use URL Inspection on the affected page to see which canonical Google selected, then align your signals toward the URL you want.
Canonicals for e-commerce
Online stores create the most canonical problems because of filters, sorting, variants and products in multiple categories. A few rules that work for most stores:
- Products should have one canonical URL, independent of the category path used to reach them.
- Sort orders and view options should canonicalize to the unsorted category.
- Filters with real search demand can have their own indexable, self-canonical pages. Others should canonicalize or be kept out of crawling.
See my guides to faceted navigation and duplicate content for the decision process.
Canonical conflicts are one of the most common findings in my audits, especially after theme changes or plugin swaps. If Search Console shows many pages where Google chose a different canonical, my technical SEO service can trace the cause.
Frequently asked questions
Is a canonical tag a directive?
No. Google treats it as a strong hint. It usually follows it when other signals agree.
Do I need a canonical tag if I have no duplicates?
Yes, a self-referencing canonical is good practice, because parameters and tracking codes can create duplicates you did not plan.
Can I canonicalize to another domain?
Yes. Cross-domain canonicals are useful for syndicated content, where the copy points to the original article.
Does a canonical pass ranking signals?
When Google accepts the canonical, it consolidates signals such as links onto the chosen URL.
Sources: Google Search Central: How to specify a canonical URL; What is URL canonicalization.




