Canonical tags

Canonical tags tell search engines "this page is the authoritative version." Used correctly, they consolidate duplicate content and focus ranking signals. Used incorrectly, they silently deindex your pages.

The tag

A self-referential canonical (most common) in the <head>:

<link rel="canonical" href="https://example.com/current-url" />

A cross-URL canonical (telling Google "this duplicate should be treated as that URL"):

<link rel="canonical" href="https://example.com/primary-url" />

When to use canonicals

Self-referential on every page

Every indexable page should have a self-referential canonical. This tells Google "this URL is the primary for this content." Doesn't hurt, helps a lot when URL variations sneak in (trailing slashes, case variations, parameters).

Duplicate content across URLs

If the same content lives at multiple URLs (WWW vs non-WWW, HTTP vs HTTPS, parameterized URLs), use canonicals to point duplicates to the primary.

Near-duplicate pages

Location pages that share 90% template text, product pages with trivial variations, canonical the duplicates to a master page if the master is the one you want to rank.

Syndicated content

If you publish your content on other sites (Medium, LinkedIn), those should canonical back to your original.

When NOT to use canonicals

Common mistakes

Canonical vs noindex

Never both on the same page, sends conflicting signals.

Canonical vs 301

301 is stronger. Use it when a URL should truly go away. Use canonical when both URLs need to exist (e.g., parameter variations).

Debugging

  1. GSC → URL Inspection → check "User-declared canonical" vs "Google-selected canonical"
  2. If they differ, Google is overriding your canonical, usually means your signals are conflicting
  3. Screaming Frog → crawl + check canonical column for inconsistencies
  4. View-source on the page to verify the tag is actually there (sometimes CMSes overwrite it)