canonical לא עובד? כך תבין איזה עמוד גוגל בחר ותתקן תוכן כפול
SEO

Canonical Tag Not Working? How to Fix Google Choosing the Wrong Page

If Search Console shows pages with the status Duplicate, Google chose different canonical than user or Duplicate without user-selected canonical, your canonical tag is not working the way you expected. Google found several URLs on your site with identical or very similar content, and it picked one of them to show in search results on its own. The canonical tag is how you tell Google which URL is the main one, but it is only a hint, and Google can choose differently.

To fix it, you check which URL Google actually chose, work out why its choice differs from yours, and then make every signal on your site point to the same URL. One thing to know before you start: according to Google, some duplicate content on a site is normal and does not violate its spam policies. What can happen is that Google shows a URL you did not want.

What a canonical tag actually does

A canonical tag is a line in the head of the page that looks like this:

<link rel="canonical" href="https://example.com/services/" />

Google describes three main signals for choosing the main URL. A redirect is a strong signal, and a canonical tag is also a strong signal. Including the URL in your sitemap is a weak signal. Beyond that, Google usually prefers HTTPS over HTTP, and picks the page that looks most complete and useful to searchers. When the signals contradict each other, Google decides on its own.

Step 1: Check which canonical Google chose

In Search Console, open the URL Inspection tool and enter the URL from the report. Under Page indexing there are two fields:

  • User-declared canonical: the URL your page declares.
  • Google-selected canonical: the URL Google actually chose.

If the two fields match, everything is fine. If they differ, that is the problem to solve. According to Google, the live test (Test live URL) does not show Google’s choice, and this field appears only in the data for the version that is already indexed.

In the Pages report there are three statuses related to this topic:

  • Alternate page with proper canonical tag: the page correctly points to a main page that is indexed. Usually there is nothing to do.
  • Duplicate without user-selected canonical: the page is a duplicate, you did not declare a main URL, and Google chose one itself.
  • Duplicate, Google chose different canonical than user: you declared a URL, and Google thinks a different one fits better.

Step 2: Make sure the tag exists and is in the right place

Open the page in your browser, right-click, choose View Page Source, and search for the word canonical. Here is what to check:

  • There is only one tag. When a theme and an SEO plugin each add their own tag, Google gets two different declarations. According to Google, you should specify a single main URL for a page.
  • The tag is inside <head>. Google accepts the tag only in that part of the page. Broken HTML above it, for example a script that landed in the wrong place, can stop it from being read.
  • The URL is complete. Google recommends an absolute URL with https:// and the domain, not a relative path.
  • The page is not set to noindex. In Yoast SEO, for example, a page set to noindex does not get a canonical tag at all.

WordPress adds a canonical tag by itself to single posts and pages. Yoast SEO and Rank Math replace it with their own tag, and by default every page points to itself. That is the right setup for most pages, and Google itself recommends that the main page point to itself.

Step 3: Check the versions of the same URL

One of the causes of duplicate content that Google lists is different versions of the same URL: HTTP versus HTTPS, with www and without. Try opening all four versions of your homepage. Three of them should permanently redirect to a single version. If several of them load without a redirect, you have multiple copies of every page on your site.

Google lists a few more sources of duplicates, and it is worth going through them while you are at it: regional versions with almost identical content, a separate mobile and desktop version, site features like sorting and filtering that create new URLs for the same list, and versions created by mistake, such as a staging or test site left open to Google. If one of these exists on your site, it is part of the picture.

In WordPress, check under Settings and then General that the WordPress Address (URL) and Site Address (URL) fields are written in exactly the version you chose. Then make sure the redirect to HTTPS is set up at your hosting or in Cloudflare. Google explicitly recommends redirecting from HTTP to HTTPS to mark the secure version as the main one.

Step 4: Align all the signals to the same URL

The status Google chose different canonical than user can appear when your site says one thing in the tag and something else elsewhere. Google states clearly that you should not specify different URLs as canonical for the same page using different methods. So go over all of these:

  1. Sitemap. According to Google, every URL in the sitemap counts as a suggestion for the main URL. If your sitemap contains URLs with parameters or an HTTP version, fix it.
  2. Internal links. Google recommends linking inside your site to the main URL. Links in the menu or in the body text to a different version send a contradicting signal.
  3. Redirects. If you set up a redirect from URL A to URL B, but the canonical tag on B points back to A, you created a contradiction. I explained how to set up a redirect correctly without losing rankings in the 301 redirects guide.
  4. The content itself. If the two pages are not really identical, for example a service page and an article on the same topic, Google may not accept your declaration. In that case you need to either differentiate the content or merge the pages. That decision is best made as part of an organized content strategy, not separately for each pair of pages.

Step 5: Fix the tag in your SEO plugin

If you decided that a specific page should point to a different page, change it on the page itself:

  • Yoast SEO: in the page editor, in the Yoast panel choose Advanced, and fill in the Canonical URL field with the full URL. Then save or update the page.
  • Rank Math: in the page editor go to the Advanced tab and change the Canonical URL field. If the tab does not appear, you need to turn on Advanced Mode in the plugin’s dashboard.

When the field is empty, the plugin leaves the page pointing to itself. Fill it in only when you really want to shift the emphasis to a different URL.

Step 6: Archive pages, pagination and filters

There are two cases here that call for care. The first is pointing all the pagination pages of a blog or category to the first page. Google states clearly that you should not use the first page as the main page of a paginated sequence, and that each page should get its own canonical URL.

The second case is sorting and filtering, for example in a store, which create many URLs for the same list. For versions like these, Google suggests keeping them out of the index with noindex or blocking crawling in robots.txt. But that recommendation fits only filters, not merging regular pages. For choosing a canonical URL, Google recommends not using noindex or robots.txt. I wrote a separate guide on the proper way to remove content from Google, for when you really want to do that.

After the fix

After the fix, run URL Inspection on the page again, and look at the code of the live version to make sure the new tag is there. Then open the relevant status in the Pages report and click Validate fix. According to Google, validation usually takes up to two weeks, sometimes longer, and the Google-selected canonical field will update only after Google crawls the page again. And even after all the fixes, the decision stays with Google. If your problem is pages that do not get into the index at all, I wrote about it in the article why my website does not show up on Google.

When to stop and call an expert

  • The source code has two or more tags, and you cannot find which theme or plugin adds them.
  • You aligned the tag, the sitemap and the links, time has passed, and Google still chooses a different URL.
  • Your site is a store with many filters and variations, and one wrong decision could drop category pages that bring in sales out of the index.
  • You are thinking of merging pages with redirects and are not sure which one to keep.
  • You found that a test environment or an old copy of the site is open to Google, and you are not sure how to close it without hurting the main site.

If you tried and did not succeed, I handle this. Leave your details here and we will check together what Google sees on your site.

And if you want to read the official documentation, it is here: Google’s guidelines on consolidating duplicate URLs.

Frequently asked questions

Does Google have to follow the canonical tag?

No. According to Google, a canonical tag is a strong signal but not a directive. Google weighs it together with redirects, the sitemap, internal links and the content itself, and it can choose a different URL.

Does duplicate content cause a Google penalty?

According to Google, some duplicate content on a site is normal and does not count as a violation of its spam policies. What does happen is that Google chooses on its own which version to show, and it is not always the version you wanted.

Do I need a canonical tag on a page that has no duplicates?

Yes. Google recommends that the main page point to itself. WordPress, Yoast SEO and Rank Math do this by default, so usually you do not need to do anything.

Can I put the tag in the body of the page?

No. Google accepts the tag only inside the head. For non-HTML files, such as PDFs, you can send it as an HTTP header.

What is the difference between a redirect and a canonical tag?

A redirect sends both visitors and Google to a different URL. The tag keeps both pages open to visitors and only tells Google which URL is the main one. Google treats both as strong signals.

How do I know which URL Google chose?

In the URL Inspection tool in Search Console, in the Google-selected canonical field. The field appears only for the version that is already indexed, not in the live test.

Have a project worth talking about?

The call is free, with no commitment 😊