Gerris home
Gerris

Chris Abraham: technical consulting, AI tools, and technical SEO

Home › Guides › Canonical Tags

Canonical tags: how Google chooses which URL to index

Most sites publish the same content at more than one address: with and without tracking parameters, sorted and filtered, printed, paginated, or copied across domains. Google picks one address from each group to show in results. The canonical tag is how you tell Google which one you prefer.

What the tag does

A canonical tag is a line in the page's head:

<link rel="canonical" href="https://example.com/shoes/trail-runner/">

It says: this page is a copy, or the original, of the content at that address, and that address is the one to index. Google consolidates ranking signals such as links onto the chosen URL and shows it in results. The duplicates stay reachable for visitors.

For files without a head, such as PDFs, the same instruction can go in an HTTP header: Link: <https://example.com/guide.pdf>; rel="canonical".

A hint, weighed against other signals

Google treats the canonical tag as a strong hint. It weighs the tag together with redirects, internal links, the URLs listed in the XML sitemap, hreflang annotations, and a preference for HTTPS and for shorter, cleaner URLs. When the signals agree, Google follows the tag almost every time. When they disagree, Google decides for itself.

A typical conflict: every product page declares a clean canonical URL, while the navigation, the sitemap, and the breadcrumbs all link to a version with a parameter. Three signals point one way and one points the other, and Google may side with the majority.

The Search Console statuses

The Page indexing report shows canonical decisions in three statuses.

URL Inspection shows both the user-declared canonical and the Google-selected canonical for any page, which settles individual cases.

The rules I apply

Common mistakes

Across domains

A canonical can point to another domain, which is how a business that runs two sites with overlapping content can concentrate signals on one. For syndicated articles republished by partners, Google's current advice is that the partner should block indexing of its copy with noindex, because a cross-domain canonical on a large partner site doesn't always win against that site's own authority.

Canonical or redirect

When visitors never need the duplicate URL, redirect it. A 301 is a stronger signal, and nobody lands on the copy. Use a canonical when the duplicate has to keep working, such as a filtered view, a tracking link, or a print version.

References