Skip to content

This guide answers: canonical tags: how rel canonical works and when google ignores it

Canonical tags: how rel canonical works and when Google ignores it

A canonical tag is a hint, not a rule. Learn how Google picks the canonical URL, why it sometimes ignores yours, and how to check its real choice.

By Hannah Wells, Technical SEO, site performance and online stores
· 7 min read

updated 

Canonical tags: how rel canonical works and when Google ignores it
FIG. 01 Photo Sudharshan TK / Unsplash

Short answer

A canonical tag is a hint, not an instruction. Google reads your rel=canonical as one input among several, and when other signals disagree with it, Google picks the URL it trusts more. The rest of this page explains how that choice is made, the situations where your tag is discarded, and how to check what Google actually decided.

Key points

  1. The rel=canonical element tells search engines which URL you prefer when several URLs show the same or very similar content.
  2. Google does not simply read your tag and obey. It collects several signals about a group of similar URLs and selects the one that best fits them all.
  3. Beyond the scenarios above, a few habits regularly cause canonicals to be ignored or misread.
  4. The only reliable test is to look at what Google decided.

What is a canonical tag and why Google treats it as a hint

The rel=canonical element tells search engines which URL you prefer when several URLs show the same or very similar content. The typical case is one page reachable at more than one address. You name the version you want indexed, and indexing signals are consolidated on it.

Google’s own documentation says that indicating a canonical preference is a hint, not a rule. That wording matters. You are making a request, and Google keeps the final decision.

Canonicalization is about consolidating indexation signals. It is not a ranking lever. Fixing a canonical will not, by itself, move a page up the results, and nobody can promise that it will. What you can expect is that Google indexes the URL you intended, and that duplicate versions stop competing with it in the index.

Schema: a request, not an order

Your declared canonical
feeds into
Google’s canonical selection
alongside
Redirects, links, sitemap, HTTPS, hreflang

The tag is one voice in the decision. The final choice belongs to Google.

How Google actually selects the canonical: the decision process

Google does not simply read your tag and obey. It collects several signals about a group of similar URLs and selects the one that best fits them all. The signals described across the SEO documentation that follows Google’s canonicalization model are these:

Schema: the signals Google weighs, in reading order

Redirects. They take precedence. A URL that redirects is already telling Google where the content lives.
Sitemap inclusion. The URLs you list in your sitemap are read as the ones you want indexed.
Protocol preference. HTTPS is favoured over plain HTTP.
Hreflang clusters. Language and region alternates are considered together.
The canonical tag itself. Your declared preference, counted with everything above.

Redirects come first in this order because they are the strongest statement a server can make about where a page now lives. The canonical tag comes last in the list, which is a useful reminder: it is the signal you control most directly, and also the one Google can most easily outvote.

Read this as a map of inputs, not a formula. Google weighs the signals together. If they all point to the same URL, your canonical is simply confirmed. If they split, the declared tag can lose.

The practical consequence is simple. Before you blame Google for ignoring a canonical, check whether your site contradicts itself. A tag that names one URL while internal links, the sitemap and redirects all favour another is a tag asking to be overridden.

When Google ignores your canonical tag

The scenarios below are the ones documented by the SEO sources consulted on 03/12/2026. Each one is a case where the declared canonical is either never processed or is overridden.

The tag is in the body, not the head

Only canonical tags placed in the <head> are processed. A tag that ends up in the body is ignored. This often happens when a template, a plugin or a script injects markup in the wrong place, or when broken HTML closes the head early.

Several conflicting canonical tags on one page

When a page carries more than one canonical tag and they disagree, Google discards the canonical signal entirely. It does not pick the first or the last. A theme and an SEO plugin each adding their own tag is a classic cause.

The canonical points to a bad target

A canonical that points to a 404 page, to a URL that itself redirects, or to a URL tagged noindex is invalid. Google overrides it. You are asking Google to index a page that cannot or should not be indexed, so the request cannot be honoured.

The page carrying the tag is itself redirected

When a URL returns a 301 or 302 redirect, the canonical tag on that URL is not processed. The redirect is the signal that counts. Any canonical you placed on the redirecting URL is simply not read.

Invalid attributes on the tag

Attributes such as hreflang, lang, media or type attached to a rel=canonical element are not used in canonicalization decisions. They do not make the tag fail by themselves, but they do not do what some people expect. A canonical is not the place to express language or device targeting.

The tag conflicts with internal links or the sitemap

If your declared canonical contradicts your internal linking patterns or your sitemap entries, Google may override it. This is the most common quiet failure, because every individual tag looks correct while the site as a whole sends mixed messages.

The canonical changes during JavaScript rendering

A canonical that is present in the raw HTML but altered once JavaScript runs, or added only after rendering, can produce unexpected indexing outcomes. Google may see one value before rendering and another after. Keep the canonical stable between the source and the rendered page.

The pages are genuinely different

A canonical is meant for duplicates and near duplicates. If two pages differ enough in content, Google can ignore your hint and index both. Pointing a distinct page at another one does not merge them. It just creates a request Google has good reason to decline.

Common implementation mistakes that undermine canonicals

Beyond the scenarios above, a few habits regularly cause canonicals to be ignored or misread.

  • Self-referential canonicals added everywhere without thought. On pages that need none, they add noise and make audits harder to read.
  • Circular canonical chains. Page A names page B, and page B names page A, or a longer loop does the same. Google cannot resolve a preference from a circle.
  • Canonicals on soft-404 pages. A page that looks empty or missing but returns a normal status gives a mixed signal, and a canonical on it does not rescue it.
  • A canonical in the HTTP header and in the HTML at the same time. If the two values differ, you have created a conflict of your own making. Pick one method.
  • Canonicals added late in rendering. Lazy-loaded or script-injected tags can arrive after Google has formed its view.

Most of these come down to the same principle: one page, one clear canonical, stable from the first byte of the response to the final rendered DOM.

How to verify your canonical is working: what to check

The only reliable test is to look at what Google decided. Search Console shows this. In the Coverage report and the URL details, you can see the canonical URL Google detected for each page.

Schema: the diagnostic path

Compare your declared canonical with the one Search Console reports.
They match: Google is following your hint. Nothing to fix.
They differ: Google is overriding you. Find out why.
Check redirects, internal links, sitemap entries, protocol and content similarity.

If the two URLs match, Google is following your preference. If they differ, Google has overridden it, and the work is diagnosis. Go through the causes in order:

  • Does the declared URL redirect, return 404, or carry noindex?
  • Do your internal links and your sitemap favour a different version?
  • Is the page served on HTTP while another version is on HTTPS?
  • Does the page differ enough from the one you named to count as distinct content?
  • Does the tag sit in the head, appear only once, and survive JavaScript rendering unchanged?

When the raw source and the rendered page may differ, compare them directly. Crawl logs show which versions Googlebot actually requests, and a fetch of the page as Google sees it shows the rendered HTML. These checks need no particular tool. What matters is comparing the declared value, the rendered value and the value Google reports.

If your canonicals keep losing, the tag is rarely the problem. Align the other signals first, and the tag usually stops being overridden.

Sources consulted on 03/12/2026

  • Google Search Central documentation, as referenced by the sources below
  • Yossifest, “Canonical tags: how Google actually treats them”
  • canonicaltag.com, guide on rel canonical syntax
  • Loudscale, guide to using canonical tags correctly
  • SEO Handbook, technical SEO section on canonical tags
  • Merj, article on extra HTML attributes in canonical tags
  • Modoohub, guide on two canonical tags and Google ignoring both
  • txtnode, article on canonical tags
  • Relevant Audience, guide to the canonical tag
  • Octopus Marketing Agency, article on the canonical tag
  • Indexed, article on canonical tags, when to use them and common mistakes

Read next in Technical SEO

seo-service-journal technical-seo

How Google crawls a website: crawl budget, crawl rate and what slows it down

· 8 min read

seo-service-journal technical-seo

Indexing explained: why a page is crawled but not indexed

· 8 min read

seo-service-journal technical-seo

Robots.txt: syntax, common mistakes and how to test it

· 6 min read

Free newsletter · every Monday

The Monday Crawl

One email each Monday: what changed in the official search documentation, and what to check on your own site.

Free. One click to unsubscribe. We use your email only to send the newsletter. Privacy policy.