Missing canonical tag: what it is and how to fix it
A missing canonical tag means search engines have to guess which version of a page is the "real" one. The fix is one line of HTML in the <head> of every page.
A missing canonical tag means search engines have to guess which version of a page is the "real" one. The fix is one line of HTML in the <head> of every page. A canonical tag is a <link rel="canonical" href="…"> element that tells Google which URL is the authoritative version of a page when the same content is reachable at multiple URLs (with and without trailing slash, with tracking parameters, http vs https, www vs non-www, etc.).
Last updated·
What it is
A canonical tag is a <link rel="canonical" href="…"> element that tells Google which URL is the authoritative version of a page when the same content is reachable at multiple URLs (with and without trailing slash, with tracking parameters, http vs https, www vs non-www, etc.).
Why it matters
Without a canonical, Google may index several duplicate URLs separately, splitting ranking signals (links, click-throughs) across them and pushing all variants down the SERP. AI answer engines also use canonical to decide which URL to cite, so a missing canonical can mean ChatGPT or Perplexity cites a parameterised duplicate instead of your clean URL.
How to fix it
- Pick the canonical URL for the page. Choose the cleanest version — usually HTTPS, no trailing slash, no query parameters. This is what you want indexed and cited.
- Add the canonical link to the <head>. Insert <link rel="canonical" href="https://yourdomain.com/your-page" /> in the <head>. Use the absolute URL, not a relative path.
- Make it self-referential on every page. Every indexable page (including the canonical itself) should declare its own canonical. Pages that should NOT be indexed (search results, paginated archives past page 1) get a noindex meta tag, not a canonical hack.
- Verify with a fetch-as-Google check. Use Google Search Console URL Inspection to confirm Google sees your canonical and is treating it as the user-declared canonical. If "Google-selected canonical" differs, investigate why (content quality, signal conflicts).
Common false positives
A self-referential canonical pointing to the same URL is correct, not a bug. Some scanners flag this — they are wrong.
Authoritative sources
- Consolidate duplicate URLs with canonicals — Google Search Central
- MDN — the <link> element (canonical attribute) — Mozilla MDN
- Google Search Central documentation — Google
- Schema.org vocabulary — schema.org
- SEO Starter Guide — Google Search Central
- MDN — HTML meta and link elements — Mozilla MDN