Sitewalk / Guides / Issue guides / Canonical tag problems
Canonical tag problems: check yours and fix them
A canonical tag tells search engines which address you want kept when the same page loads at several. It is a hint, not a command. Google calls the rel="canonical" link a strong signal, and it works best when each page names one clear address.
Check one page in 2 minutes
- Open the page and choose View Source.
- Search for
rel="canonical". - Read the address in
href.
You want exactly one tag, a full address starting with https://, and for a page you want found, the address of the page itself.
For the redirect and error problems, test the address in the tag:
curl -I https://example.com/the-address-in-the-tag
You want 200 and no redirect.
The six problems
| What you see | The problem | Fix |
|---|---|---|
| The tag names a different page | Canonical URL different. Right if this page really is a variant, such as a filter, tracking or print address. Wrong if it should be found on its own, because search engines may keep the other address. | Check why. If the page should be indexed on its own, point the tag at itself. If it is a variant, leave it. Review the template code that builds the tag. |
| No tag at all | Missing canonical. Search engines pick the preferred address themselves when the same content loads at several. | Add a canonical in the head that points to the page's own full address. |
| Page A names B, and B names C | Canonical chain. The address that ends up indexed may not be the one you wanted. | Point every canonical straight at the final page, which names itself. |
| The tag names an address that redirects | Canonical points to a redirect. Usual causes: a missing trailing slash, http instead of https, or a www mismatch. | Change the tag to the address the redirect lands on. |
| The tag names an address that errors | Canonical points to a broken page. Search engines ignore the hint. | Point it at a working page, usually the page itself. Check for typos or a stale domain after a move. |
| Two different tags, or a tag plus a header | Multiple canonical tags. Search engines may ignore all of them. A theme and an SEO plugin both adding a tag is a common cause. | Keep one source. Turn the other off. |
How to fix it, by platform
- WordPress. Yoast SEO adds canonical tags to pages and archives by default. To change one, open the page, then the Yoast sidebar, Advanced, and the Canonical URL field, which takes a full address. Make sure your theme is not adding a second tag.
- Shopify. Shopify's own themes set a canonical on all pages with
{{ canonical_url }}. If your theme has none, one line before the closing</head>in the theme layout adds it. - Next.js. Set
alternates.canonicalin the page's metadata. - Hand-coded pages. Add the tag in the head of the template:
<link rel="canonical" href="https://example.com/page/">.
Two rules from Google: put a self-referencing canonical on the page you want kept, and do not name different addresses for the same page in different places, such as one in the sitemap and another in the tag. A rel="canonical" HTTP header also works, but it is a weaker signal than the tag, so use it for files like PDFs.
Check that it worked
View source again and compare the tag with the page address. Open the address in the tag. Then run an audit.
What Sitewalk found on real sites
We counted sites with at least one page showing the problem, on the latest audit of each of 87 audited sites. These are early users, so it is a first look, not a survey.
- 56 of 87 sites (64%) had a page whose canonical named a different address. Often that is right, because the page is a filter or tracking variant, so read it as a prompt to check, not as an error.
- 3 had a canonical that points to a redirect.
- None had a missing canonical or a canonical chain, and none of the 54 sites checked for it had two canonical tags. For those problems there is no number to report.
Check your whole site
Sitewalk reads the canonical on every page it crawls, with 200+ other technical checks. In ChatGPT, say:
Audit yoursite.com for technical SEO problems
Checked on 16 Nov 2026.