Canonical Tags

SEO, AEO & GEO Glossary

A canonical tag is an HTML link element with rel=canonical that tells search engines which URL is preferred when the same content exists at several URLs.

What is Canonical Tags?

A canonical tag is an HTML element, written as a link with rel=“canonical” in a page’s head, that tells search engines which URL is the preferred version of a page when identical or very similar content is accessible at multiple URLs. It helps search engines consolidate ranking signals onto one URL and show that URL in results.

Google, Yahoo and Microsoft jointly introduced rel=canonical in 2009 to address duplicate content caused by URL parameters, session IDs and content syndication. It was later formalized in RFC 6596. Today it is one of the most common technical SEO tools and one of the most commonly misconfigured.

How it works

Example in the page head: a link element with rel=“canonical” and href=“https://example.com/pricing”.

Use cases:

SituationCanonical points to
Tracking parameters (?utm_source=)The clean URL
Filtered or sorted listsThe main category URL, where content is equivalent
Syndicated article on a partner siteThe original article (if the partner agrees)
HTTP and HTTPS, www and non-wwwThe single preferred version
Self (no duplicates)The page’s own URL

Implementation rules:

  1. Use absolute URLs.
  2. Include only one canonical per page.
  3. Point to a live, indexable 200 URL, not a redirect, 404 or noindex page.
  4. Keep the tag in the head; tags in the body are ignored.
  5. For PDFs and other files, use the Link HTTP header.

Examples

  • A B2B SaaS site appends UTM parameters to links in campaigns. Self-referencing canonicals on every page ensure the clean URL is indexed instead of parameterized copies.
  • A security vendor syndicates research to an industry publication, which adds a cross-domain canonical pointing to the vendor’s original report.
  • A docs site exposes the same page at /docs/setup and /docs/setup/index.html. A canonical tag and a redirect both point to /docs/setup.

Best practices

  • Combine signals. Canonicals, internal links, sitemaps and redirects should all point to the same URL.
  • Audit with a crawler for missing, multiple or conflicting canonicals.
  • Check Google’s choice using URL Inspection in Search Console.
  • Prefer redirects when the duplicate URL has no reason to exist.

Common mistakes

  • Canonicalizing all paginated pages to page one, which hides content on later pages.
  • Pointing canonicals to non-indexable or redirected URLs.
  • Templates that set every page’s canonical to the homepage.
  • Using canonical tags and noindex together on the same page, which sends conflicting signals.

Sources

Frequently asked questions

Where do you put a canonical tag?

In the head section of the HTML page, as a link element with rel=canonical and an absolute URL in the href attribute. For non-HTML files such as PDFs, you can send the canonical as a Link HTTP header instead. Only one canonical per page.

Should every page have a self-referencing canonical tag?

It is a widely recommended practice. A self-referencing canonical makes the preferred URL explicit and protects against duplicates created by tracking parameters, session IDs or uppercase variants. Google does not require it, but it reduces ambiguity. Most CMSs can add it automatically.

Does Google always follow canonical tags?

No. Google treats rel=canonical as a strong signal but can select a different canonical if other signals conflict, for example if the pages are not actually duplicates, internal links point elsewhere, or the declared URL redirects or returns an error.

Technical SEODuplicate ContentIndexing

Do not let AI keep
recommending someone else

Start your 7-day free trial and get your AI Visibility Score in about a minute. See exactly where you stand, where competitors are beating you, and the ranked fixes to get into the answer. Cancel anytime before the trial ends.

7-day free trial. Cancel anytime before it ends. Trusted by 500+ B2B SaaS teams.

Partnered with
Powered by