SiteCheck

Guides · Search

What a canonical link is and how to set it

The same page can often be opened at several addresses. One may start with www and another without it. A link from an email may add a tracking tag to the end.

A search engine may treat these as separate pages, and links from other sites may then be spread across them. A canonical link is one line of code that names the address you want treated as the main one. Google treats it as a strong signal, and it can still choose another address.

Three addresses, one main addressThree variations of a shoe page address each have an arrow to one main address, https://example.com/shoes, which is the address named in the canonical link. Addresses for the same page Canonical link http://example.com/shoes www.example.com/shoes example.com/shoes?ref=mail Main addresshttps://example.com/shoes
Each variation points search engines to one address.

What your report means

Another address can be correct. On Shopify, a product opened through a collection often points to its plain product address. It is a mistake if an ordinary page points to your home page, an old domain or a test site.

A trailing slash alone does not trigger this finding. A tracking tag does, so scan the plain address if you scanned one with a tag.

How to fix it

The finished line goes in the page's head section and looks like this:

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

Google suggests a redirect where one is possible, because it sends visitors and search engines to the main address. For a developer or host, ask for this: "Print one canonical link on every page, with the full https address, and redirect the other versions to it."

Find the link in your page source

  1. Open the page in a desktop browser.
  2. Right-click and choose View page source.
  3. Search the source for canonical.
  4. Confirm there is one link, with the full address you want.
  5. Press Rescan on your report to see the new result.