Canonical Tag (rel=canonical)

Canonical Tag

A canonical tag (rel=canonical) is a piece of HTML that tells search engines which version of a page is the preferred, or canonical, one when the same or very similar content exists at multiple URLs. It consolidates duplicate pages so ranking signals point to a single URL.

A canonical tag is how you tell search engines, this is the real version of this page, ignore the copies. Websites often generate multiple URLs for the same content through parameters, filters, and variations, and the canonical tag prevents that duplication from splitting or diluting your SEO.

What Problem Does a Canonical Tag Solve?

Duplicate content confuses search engines about which URL to rank and can split the link signals that should strengthen one page across several. This is common on e-commerce sites, where a product can appear under multiple collections, filters, or tracking parameters. The canonical tag resolves it by naming one URL as the definitive version, so all the signals consolidate there.

How Does a Canonical Tag Work?

You add a link element in the page's head pointing to the preferred URL. Every page, including the canonical one, should reference the version you want indexed. According to Google's canonicalization documentation, the tag is a strong hint rather than an absolute directive: Google usually respects it but may choose a different canonical if other signals disagree, so consistency across your signals matters.

How Do You Use Canonical Tags Correctly?

  • Use self-referencing canonicals: every indexable page should point to itself as the canonical.
  • Point duplicates to the original: variations, filtered pages, and parameter URLs should canonicalize to the main version.
  • Keep signals consistent: internal links, sitemaps, and redirects should agree with the canonical you declare.
  • Use absolute URLs: specify the full URL, including protocol and domain, to avoid ambiguity.

What Are Common Canonical Tag Mistakes?

Frequent errors include pointing many different pages to a single canonical when they are not actually duplicates, which can deindex real content; canonicalizing to a URL that redirects or returns an error; mixing signals so the canonical, sitemap, and internal links disagree; and canonicalizing paginated pages to the first page instead of letting each rank. When in doubt, the canonical should always point to a live, indexable, genuinely equivalent URL.

Frequently asked questions

What is a canonical tag used for?+

A canonical tag tells search engines which URL is the preferred version when the same or similar content exists at several URLs. It consolidates duplicate pages so ranking signals point to one URL instead of being split.

Is a canonical tag a directive?+

No, Google treats it as a strong hint rather than an absolute directive. It usually respects the canonical you declare, but may choose a different one if other signals, such as internal links or sitemaps, disagree, so keep them consistent.

Should every page have a canonical tag?+

Yes. Every indexable page should have a self-referencing canonical pointing to itself, and duplicate or variation URLs should canonicalize to the main version. Use absolute URLs and keep the tag consistent with your other signals.