Technical SEO

What is a canonical tag.

In short

A hint telling Google which URL is the main one when the same or very similar content is available at several addresses. It is set with a link rel="canonical" tag in the page code.

Also known as: rel=canonical, canonical URL

Why canonicals exist

The same content is often available at several URLs: with a sort parameter, a campaign code, with and without a trailing slash. To Google these are separate URLs. The canonical tag says which one is the main version that should appear in results, and treats the rest as copies.

What it looks like

You add <link rel="canonical" href="https://example.com/running-shoes/"> in the head of the page. Ideally every page has a canonical, including self-referencing ones, with the full https URL.

A canonical is a hint

Google treats the canonical as a strong suggestion, not a command. If other signals contradict it, for example internal links point to another version or the sitemap lists a different URL, Google may choose a different one. Search Console shows which URL it picked.

Common mistakes

  • All paginated pages point their canonical to page one, so products on later pages get indexed less well.
  • A canonical pointing to a page that redirects or returns an error.
  • Canonical and noindex on the same page, which sends conflicting signals.
  • A canonical injected by JavaScript that differs from the one in the HTML.
  • Pointing the canonical to entirely different content, such as every product to its category.

Sources

Canonical tag: questions.

How is a canonical different from a 301 redirect?

A 301 sends users and crawlers to the new URL and the old page is no longer accessible. A canonical keeps both versions accessible to people but tells Google which one to show in results.

Does a canonical work across domains?

Yes. You can point to a URL on another domain, for example when the same article is published on two sites.

Need help with this?.

Tell me briefly about your site. I will tell you whether this affects you and where to start.

[email protected] +48 739 260 401 Google Business Profile Leave a review Gdańsk, Poland · in person or online, worldwide
Loading calendar…
Open the calendar in a new tab

I reply to every message.