Skip to content
SEO High severity

Canonical Tags

What are canonical tags and how do they prevent duplicate content?

By eiSEO Team · Published Jun 15, 2025 · Updated Feb 27, 2026

What is canonical tags?

A canonical tag (rel="canonical") is an HTML element placed in the <head> of a page that tells search engines which URL is the preferred or "canonical" version of that page. When the same content is accessible at multiple URLs (due to query parameters, www/non-www variations, HTTP/HTTPS, or syndication), the canonical tag consolidates all ranking signals to a single URL.

A canonical tag is an HTML link element with rel="canonical" that tells search engines which URL is the preferred version of a page when the same content is accessible at multiple URLs. It consolidates ranking signals to a single URL and prevents duplicate content from diluting your page authority in search results.

Why does canonical tags matter?

Without canonical tags, search engines may index multiple versions of the same page, splitting link equity and ranking signals across duplicate URLs. This dilutes your page's authority and can result in the wrong URL appearing in search results. In severe cases, search engines may perceive widespread duplication as low-quality content, negatively affecting your site's overall crawl efficiency and rankings.

Key statistics

Up to 29% of the web consists of duplicate content, making canonical tags essential for consolidating ranking signals across URL variations.

Source: Raven Tools

How to fix it

  1. 1

    Add a self-referencing canonical tag to every indexable page, pointing to its own clean URL (without query parameters or tracking codes).

  2. 2

    For pages accessible at multiple URLs (e.g., with and without trailing slashes, with sorting parameters), set the canonical to the preferred version.

  3. 3

    Use absolute URLs in canonical tags (e.g., https://example.com/page), not relative paths.

  4. 4

    Ensure canonical tags are consistent with other signals — do not canonical to a URL that is blocked by robots.txt, returns a 404, or is set to noindex.

  5. 5

    Audit your site for conflicting canonicals where page A canonicals to page B but page B canonicals to page C (canonical chains).

Code example

Bad
<!-- Page: /products?sort=price&color=red -->
<!-- No canonical tag — search engine indexes the filtered URL separately -->
Good
<!-- Page: /products?sort=price&color=red -->
<link rel="canonical" href="https://example.com/products">
<!-- Consolidates all filtered variations back to the main products page -->

Frequently asked questions

Yes. Every indexable page should have a self-referencing canonical tag pointing to its own clean URL. This explicitly tells search engines which URL you prefer, even if there is only one version.
It is a hint, not a directive. Google generally respects canonical tags but may override them if other signals (internal links, sitemaps, redirects) point to a different URL as the canonical.
Yes. Cross-domain canonical tags are useful when you syndicate content to other sites. The syndicated version should include a canonical tag pointing back to the original page on your domain.

Analyze your site's SEO health

eiSEO automatically detects and helps you fix issues like this across your entire site.