How to add a canonical URL

A canonical tag tells search engines which address is the main version of a page.

Why it matters

The same page often lives at several addresses (with and without www, with tracking codes). Without a canonical, search engines split its ranking between the copies or pick the wrong one.

Steps

  1. Add a link tag in the page head pointing to the preferred address.
  2. Use the full https address, without tracking parameters.
  3. Keep it identical on every duplicate version of the page.

For your developer

<link rel="canonical" href="https://example.com/page">

Check it worked

View the page source and search for rel="canonical". The address should match the one you want in search results.

See all 24 fix guides

Not sure if this affects your site?

Run a free scan to see exactly which of these your website needs.