Technical SEO
Canonical Tags Explained With Real-World Examples
By Shayan Ahmad · · 6 min read

A canonical tag is a short hint in a page's HTML that says, "this is the URL I want search engines to treat as the main one." It is one of the main tools for dealing with duplicate or near-duplicate pages. Used well, it consolidates signals onto the address you care about. Used badly, it can send Google to the wrong place, or be ignored altogether. This article explains the idea with real-world examples, including when to self-reference, when to consolidate, and when a canonical is the wrong fix.
The tag is a hint, not a command. Google may choose a different canonical if the signals disagree. Your job is to make the hint consistent with your redirects, internal links and sitemaps, so there is little reason to ignore it.
When to Use a Self-Referencing Canonical
Most indexable pages should have a canonical tag that points at themselves, using the exact URL you want in the index: the right protocol, host, path and trailing-slash style. That sounds unnecessary until you see how often a page can be requested in more than one way.
Imagine an article that lives at https://www.example.com/guides/running-shoes. It might also be reachable with a tracking parameter, a slightly different trailing slash, or through an internal search. A self-referencing canonical on the clean URL, and the same canonical on the parameter version if that version exists, tells Google which address to prefer.
Self-referencing tags are the default on a tidy site. They do not "boost" the page. They reduce ambiguity. If your CMS does not output them, add them, and make sure the URL in the tag matches the URL in the sitemap and in your internal links. That consistency is a regular item in our technical SEO work.
When to Consolidate Several URLs Onto One
Use a canonical to a different URL when two or more addresses show the same, or almost the same, content, and only one should be indexed. Typical cases include:
- A product or article that can be opened with sort, filter or tracking parameters.
- A printable or "lite" version of an article that should not compete with the main one.
- HTTP or non-www versions, although a 301 redirect is the better primary fix there, with the canonical as a backstop.
- A syndicated copy on your site that should credit the original URL, when you have a genuine reason to keep the copy live.
The destination should be a close match. Canonicalising a filtered "red running shoes" landing page, if it has unique content and unique demand, to a generic "running shoes" category can throw away a useful URL. Canonicalising a sort view to the clean category is usually right, because the content is the same list in a different order.
Internal links should also point at the chosen URL. A canonical that says "use A", while the menu, the sitemap and every related-products module point at B, is a mixed signal. Google may side with the links. This is the same consistency we look for in an SEO audit, and it comes up often when we compare technical ecommerce SEO approaches.
Real-World Examples, Including Things That Go Wrong
The parameter product page
A shopper arrives from an ad at /products/linen-shirt?ref=summer-email. The page is the linen shirt. The canonical should be /products/linen-shirt, not the parameter URL and not the homepage. If every campaign URL canonicalises to itself, you can end up with dozens of near-duplicate product URLs in the index.
The pagination mistake
Category page 2 is not a duplicate of page 1. It lists different products. A canonical from page 2 to page 1 can hide items that only appear later in the grid. Paginated pages usually need a self-referencing canonical, plus clear internal links, not a blanket consolidation to page 1.
The all-to-homepage error
After a redesign, a team points every leftover or thin URL's canonical at the homepage. The homepage is not the canonical version of those pages. Use a redirect if the page is gone, or a self-canonical and a proper 404 if it should not be consolidated. A homepage canonical is almost always a mistake.
The conflicting signals
A page has a canonical to URL A, a 301 to URL B, and a sitemap entry for URL C. Google has to guess. Pick one URL and make every signal agree. If the move is permanent, a 301 is usually stronger than a canonical alone. The tag is more useful when the page must stay live, but should not be treated as the main version.
When to Avoid a Canonical Altogether
A canonical is the wrong tool when the pages are genuinely different, when you want both in the index, or when the URL should not be indexed at all. In the last case, use noindex, or do not publish the page, rather than pointing a canonical at an unrelated URL "just in case". It is also the wrong tool for a temporary move; use a temporary redirect if the original will return.
Do not use a canonical to try to pass the value of a weak page to a strong but unrelated one. That is not what the tag is for, and it is often ignored. Merge the content properly, or redirect if the old page is retiring. For stores, this tidy thinking sits alongside ordinary category and product work, such as the structure we describe when looking at how e-commerce SEO helps pet food brands.
If you are unsure which URL Google has chosen, inspect the page in Search Console. If Google has picked a different canonical from the one you declared, look for conflicting links, redirects, or a destination that does not closely match the page.
A short complementary check is to confirm the chosen URL is the one in your sitemap and in the main internal links. Our SEO checklist includes that alignment because the tag rarely works well in isolation.
FAQs
Do I need a canonical tag on every page?
On most sites, yes, as a self-referencing tag on indexable pages, and a consolidating tag on recognised duplicates. A site with only one clean URL per page and no parameters may get by without drama, but the self-referencing tag is still a good default.
Is a canonical enough, or do I also need a redirect?
If the old URL should no longer be used, a 301 is the clearer move. Use a canonical when the duplicate URL still needs to be reachable, for example a parameter or a slightly different path that users may hit, but should not be the indexed version.
Can I canonicalise to a page on another domain?
Cross-domain canonicals exist, and they can be appropriate when you are publishing a copy of content whose original lives elsewhere. They are easy to get wrong, and they should be used deliberately, not as a general habit.
Why is Google ignoring my canonical tag?
Usually because other signals disagree, or because the two pages are not close enough copies. Align links, sitemaps and redirects, and make sure the destination is a genuine equivalent, not a convenient catch-all.
Want Your Canonicals Checked?
If Search Console shows Google choosing different canonicals from the ones you set, or you have parameter and duplicate URLs competing with your main pages, a technical review will show where the signals conflict. Start with a free SEO audit and we will tell you which canonicals to keep, change, or replace with a redirect.
- canonical tags
- duplicate content
- technical seo
- indexing
- sitemaps
Have a question about this for your own site?
A 15-minute call is usually enough to tell whether it applies to you and what to do first.


