How to add a self-referencing canonical tag
A self-referencing canonical tag tells search engines which URL is the original version of a page. It stops duplicate URLs, such as tracking parameters or trailing slash variants, from splitting ranking signals. Add one link tag with the absolute https address of the page itself in the head.
By ratemysite.ai editorial team. Updated .
How do you fix it?
- Decide the one preferred URL for the page: https, your chosen www or non-www host, and a consistent trailing slash.
- Add <link rel="canonical" href="https://example.com/page/"> to the head with the full absolute URL.
- Check the tag points to the page itself and not to the home page or to a redirected address.
- View the page source in your browser and confirm exactly one canonical tag is present.
- Re-run the audit and confirm the Canonical check passes.
What is a canonical URL?
A canonical URL is the address you want search engines to treat as the main version of a page. The same article can often be reached at several addresses: with and without www, with a tracking code, with a trailing slash. Search engines may index each one, which splits links and signals between copies. A canonical tag collapses them into one. A common pattern is a blog post reachable at 4 addresses (http and https, with and without www) where only 1 is meant to be indexed.
What mistakes break canonical tags?
The common errors are a canonical that points to http when the site is https, one that points to the home page from every inner page, and two conflicting tags added by a theme and an SEO plugin. Google treats the tag as a strong hint, not a command, so it may ignore a canonical that disagrees with your redirects and sitemap. Keep all three consistent: the same URL in the canonical, the sitemap and your internal links.
How much does this check matter?
- This check is worth about 1.9% of the overall score.
- A finished report is reused for 24 hours before you can re-analyze it.
- Each page is fetched with a timeout of 10 seconds, and HTML larger than 2 MB is not audited.
What else do people ask?
- Should every page have a canonical tag?
- Yes. A self-referencing canonical on every indexable page is a safe default, and it protects you when links arrive with extra parameters.
- Can I use a relative URL in the canonical?
- You can, but absolute URLs are safer. Relative paths can resolve wrongly when the page is served from another host or a mirror.