Glossary

What is Canonical tag?

In one sentence

A canonical tag is a line of code that tells search engines which version of a page is the main one when similar versions exist.

Why it matters for your business

The same page can often be reached at several addresses: with and without “www”, with tracking codes added, or through different menu paths. To a search engine, these can look like separate, duplicate pages. A canonical tag points them all to one preferred address, so search engines know which one to show.

Google treats the canonical tag as a strong hint rather than a strict rule, and it may choose a different main version if other signals disagree.

Example

These addresses all show the same page:

  • https://yourdomain.com/services/drain-cleaning
  • https://www.yourdomain.com/services/drain-cleaning
  • https://yourdomain.com/services/drain-cleaning?utm_source=facebook

Each version includes this tag in its code, pointing to the preferred address:

<link rel="canonical" href="https://yourdomain.com/services/drain-cleaning">

How to check or improve it

  1. Give every page a canonical tag pointing to itself, using your preferred address.
  2. Redirect alternate versions, such as “www” or “http”, to the preferred one.
  3. Use the same preferred addresses in your sitemap and internal links.
  4. In Google Search Console, check the Pages report for “Duplicate” warnings.

Last reviewed October 16, 2026

Go deeper Technical SEO service

Back to the glossary · Run a free audit