Sub topic 8
Canonical and duplicate reasons
This chapter covers the four canonical-related reasons in the Page indexing report. It shows how to tell which are normal and which need action. It assumes you have a verified Search Console property, know what a sitemap and a <link> element in the page head are, and have opened the reasons table described in the earlier chapters.
Why duplicates exist
Many sites serve the same content at more than one URL. Common causes:
http://andhttps://versions of a page.wwwand non-wwwhostnames.- Trailing-slash and no-trailing-slash variants.
- Tracking or sorting parameters such as
?utm_source=newsor?sort=price. - Faceted navigation, print versions and mobile versions.
- Syndicated copies of an article.
Google does not want to index all of these. It groups near-identical URLs into a cluster and picks one URL from the cluster to represent it. That URL is the canonical. The other URLs are crawled but not indexed, and the report lists them under a duplicate-related reason.
Two canonicals matter when you read the report:
- The user-declared canonical is the URL you state, usually with
rel="canonical". - The Google-selected canonical is the URL Google actually chose.
Most duplicate reasons come from how these two relate.
<link rel="canonical" href="https://www.example.com/shoes/">A canonical is a hint, not a command. Google also weighs redirects, sitemap inclusion, internal links, HTTPS and the content itself. When the signals disagree, Google may overrule your declaration.
The four reasons
All four appear under Not indexed in the reasons table.
| Reason in the report | What it means | Usually |
|---|---|---|
| Alternate page with proper canonical tag | This URL declares a canonical pointing elsewhere, and Google accepted it. | Expected |
| Duplicate without user-selected canonical | Google found duplicates, none of them declares a canonical, and Google chose a different URL. | Check |
| Duplicate, Google chose different canonical than user | You declared a canonical, but Google picked another URL. | Investigate |
| Duplicate, submitted URL not selected as canonical | You submitted this URL in a sitemap, but Google chose a different one. | Investigate |
Alternate page with proper canonical tag
This is the healthy case. The page says "the preferred version is over there," and Google agrees. Parameter URLs, tracking-tagged URLs and alternate versions of a page often land here. You do not need to fix anything. Open a few example URLs to confirm the canonical target is the page you want in search results.
Duplicate without user-selected canonical
Google found a cluster of similar pages, and none of them states a preference. Google chose one, and the URL in your report is not it. Ask whether Google chose the right page.
- If the chosen page is the one you want, no action is needed. You may still add a canonical tag to make the choice explicit and stable.
- If Google chose a different page than you wanted, add
rel="canonical"to every variant, pointing at your preferred URL. Also make internal links and the sitemap use the preferred URL. - If the pages are not really duplicates (for example, thin pages that differ only by a city name), the fix is to make the content distinct and useful, not to add tags.
Duplicate, Google chose different canonical than user
Here you declared a canonical, but Google decided another URL is a better representative. Your URL stays out of the index. This reason is the most informative, because it means your signals contradict each other. Typical causes:
- The declared target redirects, returns 404, or is
noindex. Google will not honor a canonical that points to an unusable page. - The declared target has different content from the page that points to it, so Google does not treat them as duplicates.
- Internal links, the sitemap or redirects all point to a different version than the one the tag names.
- The page carries several conflicting canonical tags, or the tag sits in the page body, where Google ignores it. A
<link rel="canonical">element belongs in the<head>. - A relative URL or a typo resolves to a host you did not intend.
Duplicate, submitted URL not selected as canonical
You submitted the URL in a sitemap, which is a strong statement that you want it indexed. No declared canonical was found, and Google chose a different URL. Because you asked for this page explicitly, this reason usually deserves attention.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.example.com/shoes/</loc>
</url>
</urlset>A sitemap should list only canonical URLs. If it lists https://example.com/shoes while your site redirects to https://www.example.com/shoes/, you are submitting a non-canonical URL. Update the sitemap to list the final URL.
Deciding whether it is a problem
The key question is not "why isn't this URL indexed?" but "is the URL Google chose the one I wanted?" If yes, the exclusion does its job.
Comparing declared and selected canonicals
The reasons table tells you the category. The URL Inspection tool tells you the specific URLs. Paste an affected URL into the search bar at the top of Search Console and open the indexing section of the result. Compare two fields:
- User-declared canonical: what Google read from your page, headers or redirects.
- Google-selected canonical: the URL Google chose.
Interpret the pairs like this:
| User-declared | Google-selected | Meaning |
|---|---|---|
| Another URL, B | B | Alternate page with proper canonical tag. Working as intended. |
| None | Another URL, B | Duplicate without user-selected canonical. You gave no hint. |
| URL A (the inspected one) | Another URL, B | Google overruled you. Look for conflicting signals. |
| Another URL, B | Another URL, C | Your target and Google's choice both differ from the inspected URL. Three-way conflict; check B first. |
Google's selected canonical is reported for the indexed version of the page. A live test shows what Google can fetch right now, but it does not report a Google-selected canonical. Use the live test to confirm that a fix is visible. Use the indexed view to see Google's current decision. A freshly fixed page can still show the old selection until Google recrawls it.
Checking your own signals
Before you change anything, look at every signal Google sees for the cluster.
- Fetch each variant and read its
<head>. Confirm there is exactly one canonical, and that it is an absolute URL. - Request the declared canonical target. It should return
200, be indexable, and not redirect. - Check that internal links use the preferred URL and not a parameter or alternate version.
- Check that the sitemap lists only preferred URLs.
- Check that redirects (for example
httptohttps) lead to the preferred version.
You can script step 1 and step 2 for a handful of URLs:
import re
import urllib.request
def canonical_of(url):
req = urllib.request.Request(url, headers={"User-Agent": "canonical-check"})
with urllib.request.urlopen(req) as resp:
final_url = resp.geturl()
status = resp.status
html = resp.read().decode("utf-8", errors="replace")
tags = re.findall(r'<link[^>]+rel=["\']canonical["\'][^>]*>', html, re.I)
hrefs = []
for tag in tags:
m = re.search(r'href=["\']([^"\']+)["\']', tag, re.I)
if m:
hrefs.append(m.group(1))
return status, final_url, hrefs
for u in ["https://www.example.com/shoes/?sort=price"]:
status, final_url, hrefs = canonical_of(u)
print(u, status, final_url)
print(" canonical tags found:", hrefs)
if len(hrefs) != 1:
print(" warning: expected exactly one canonical tag")The regular expression handles typical markup but is not a full HTML parser. It is enough for a quick check, and a crawler tool is better for a whole site.
Mistakes that cause these reasons
- Blocking duplicates in robots.txt. Google cannot crawl a blocked URL, so it never reads the canonical tag on it. The duplicate then shows as "Blocked by robots.txt" and your consolidation signals are lost. Let Google crawl duplicates and use canonicals instead.
- Using
noindexon a duplicate while canonicalizing to it, or the reverse. Anoindexpage that is the canonical target gives Google contradictory instructions. Pick one approach per page. - Pointing every page's canonical at the home page. Google treats this as a mistake and ignores it. Each page should canonicalize to itself or to a truly equivalent page.
- Canonicalizing paginated pages to page one. Page two lists different items, so Google often ignores the hint. Let paginated pages be self-canonical.
- Forgetting that the report lags. Changing a canonical does not change the report the same day. Google must recrawl, and the report updates later.
What to do next
After you correct the signals, return to the report and start a validation if one is offered for the issue. Validation and its results are covered in a later chapter. Prioritize by page value: a product page that Google excluded in favor of a parameter version matters more than a hundred tracking-parameter URLs that were correctly excluded.
Exercise
A URL in your sitemap appears under "Duplicate, Google chose different canonical than user." URL Inspection shows the user-declared canonical as https://www.example.com/a/ and the Google-selected canonical as https://www.example.com/b/. Name two checks you would run on /a/ and /b/ before changing anything, and say what a failing result would mean.
Show answer
First, request /a/ and confirm it returns 200, is not noindex, does not redirect, and has exactly one canonical tag in the head. A failure (redirect, 404, noindex, duplicate tags) means Google cannot honor your declaration. Second, compare the content of /a/ and /b/ and check which URL internal links and the sitemap favor. If the content differs substantially, Google may not see them as duplicates, so make /a/ distinct or accept /b/. If internal links, redirects or the sitemap favor /b/, align them with /a/ if you want /a/ indexed.
Exercise
The reasons table shows 3,000 URLs under "Alternate page with proper canonical tag." Most are parameter URLs such as /shoes/?color=red. Do you need to fix them? What would you verify?
Show answer
No fix is needed. This reason is expected: each URL declares a canonical and Google accepted it. Verify by inspecting a few examples that the canonical target is the clean URL you want indexed (for example /shoes/), and that the clean URL itself is indexed and not listed under a problem reason.