What AuditX checks
The scan reads the canonical tag (a link element with rel="canonical") in the page you scanned. It reads the address of the page after any redirect, and after the browser has rendered the page when that was needed. It turns the canonical address into a full address and compares only the host names. Two host names count as the same site when they are equal or when one ends with a dot followed by the other (so www.example.com, shop.example.com and example.com are all one site). Anything else counts as another domain. The check passes when the canonical stays on the same site. It fails when the canonical points to another domain, and the message names that domain. It is an info note, which does not lower the score, when the page has no canonical tag or when the address cannot be parsed. The check does not look at the path, the scheme (http or https) or whether the canonical page exists. A fail here is one of four blocking checks (with the meta robots tag, the X-Robots-Tag header and robots.txt). If any of them fails, the overall score cannot go above 50. Other pages of the site are not read for this check, and canonical tags sent in an HTTP header are not read.
Why it matters
Google Search Central explains that a canonical tag tells Google which URL is the main version of a page, and that Google uses it as a strong hint when it picks the address to show in results. A tag that names another site can lead Google to show that site instead of yours.
Google Search Central describes the canonical tag as one of the signals it uses to decide which URL to keep in its index. The tag is invisible to visitors, so a wrong value, for example one copied from a staging site, can stay unnoticed for a long time.
How to fix it
- View the page source and find the line with rel="canonical". Read the domain in the href value.
- If the domain is not yours, change the value to the address of this page on your own site. Use the full address with https.
- Check where the tag comes from. A theme setting, an SEO plugin, or a template copied from a staging or old site is the usual source. Fix it there so every page is corrected at once.
- If you meant to point to another domain on purpose, for example a partner who publishes your article, keep it, but know that the page on your site then asks Google to prefer the other site.
<link rel="canonical" href="https://www.example.com/services/plumbing/">
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my siteSources
- Google Search Central: How to specify a canonical URL
- Google Search Central: Fix canonicalization issues