A canonical tag is a link element in a page's head, written as rel="canonical", that 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 alongside redirects, internal links and sitemaps.
Key takeaways
- Every indexable page should carry a self-referencing canonical tag with its preferred URL.
- Canonicals consolidate duplicates but do not remove the duplicate URLs from crawling.
- Use a 301 redirect when the duplicate does not need to exist for users at all.
- Check URL Inspection to see whether Google accepted your canonical or chose another.
Why does duplicate content happen?
Most duplication is accidental and technical. The same product may be reachable at several URLs through category paths, tracking parameters, sort orders, session IDs, printer-friendly versions, HTTP and HTTPS or www and non-www hosts. Content management systems also create tag and archive pages that repeat the same posts. None of this is a penalty issue, but it splits signals across URLs.
When Google sees several similar URLs, it groups them and picks one to show. If you do not state a preference, Google guesses. Its guess might be a parameter URL with tracking codes, which then appears in results and collects links that should have strengthened your clean URL. It also wastes crawling on copies instead of new pages.
How do you implement a canonical tag correctly?
Place a link element in the head of the HTML: link rel="canonical" href="https://www.example.in/preferred-page/". Use the full absolute URL, including protocol and host. Every indexable page should point to itself. Duplicate variants should point to the preferred version. You can also send a canonical in an HTTP header, which is useful for PDFs and other non-HTML files.
Keep your signals consistent. Internal links, the XML sitemap, hreflang annotations and the canonical should all reference the same preferred URL. If your canonical says one thing and your internal links say another, Google may ignore the canonical. Strip tracking parameters such as utm codes from canonical URLs so campaign links never become the preferred version.
- Use absolute URLs, not relative paths
- Only one canonical tag per page
- Point to a live page returning 200, not a redirect or 404
- Keep it in the head, not the body
- Make sure the rendered HTML has the same canonical as the raw HTML
When should you use a redirect or noindex instead?
Use a 301 redirect when the duplicate URL has no reason to exist for visitors, such as an old URL after a restructure or the non-www version of your site. Redirects are a stronger signal than canonicals and send users to the right place as well. Use a canonical when both URLs must stay accessible, such as a product reachable through two categories or a URL with a tracking parameter.
Noindex suits pages you do not want in search at all and that are not duplicates of a better page, such as thin internal search results. Avoid pointing a canonical to one page while also adding noindex to the same page, because the signals contradict each other.
What canonical mistakes are most common?
Pointing every page's canonical to the homepage is a frequent template error that can drop whole sections from the index. Paginated category pages that all canonicalise to page one hide the products on later pages. Each paginated page should usually canonicalise to itself. Another error is canonicalising across pages that are not truly similar, which Google tends to ignore.
JavaScript frameworks sometimes inject a different canonical after rendering than the one in the raw HTML. Plugins on WordPress can also clash, with a theme and an SEO plugin both adding canonical tags. When a page carries two different canonicals, Google may ignore both. View the source and the rendered HTML to confirm only one tag is present.
How do you check which canonical Google chose?
Open URL Inspection in Search Console and enter the URL. The coverage section shows the user-declared canonical and the Google-selected canonical. If they differ, Google has overruled you. The Page indexing report also lists pages under 'Duplicate, Google chose different canonical than user' and 'Duplicate without user-selected canonical'.
When Google disagrees, look for conflicting signals. Check which version internal links use, which is in the sitemap, which has more backlinks and whether the content is genuinely the same. Aligning these usually resolves the issue within a few crawls. Run a site crawl as well to list every page whose canonical points somewhere other than itself and review that list for mistakes.
Frequently asked questions
Can I use canonical tags across different domains?
Yes. Cross-domain canonicals are supported and are useful when you syndicate an article to another site or run two domains with the same content. The republishing site adds a canonical pointing to your original. Google may still choose differently if other signals strongly favour the copy.
Do canonical tags pass link signals?
Google generally consolidates signals such as links from duplicate URLs onto the canonical it selects. That is why getting the canonical right matters. It is not instant and it depends on Google accepting your preference, so redirects remain the more reliable option when a duplicate URL is not needed.
Should product variants like colours have their own canonical?
It depends on search demand. If people search for specific variants, such as a red saree in a certain fabric, separate indexable pages with self-canonicals can work, as long as each has distinct content. If variants differ only slightly, canonicalise them to the main product page.
