Technical SEO 

Canonical tag: setting the preferred URL

Two smiling people work at computers in a modern office.
Ralph Grundmann · Last updated on 4 November 2026

The canonical tag is an important tool in SEO that helps to avoid issues with duplicate content on websites. This tag shows search engines which version of a page that can be reached at several URLs should be indexed, so that signals are consolidated on one URL.

What is a canonical tag?

The canonical tag tells Google which of several pages with duplicate content is the preferred version. Google treats it as a strong signal but makes its own choice, also taking other signals such as redirects and the sitemap into account. The URL Inspection tool in Google Search Console shows which URL Google has selected.

Let’s take an online shoe shop as an example. The shop is well optimised for search engines in terms of content, technology and structure. In the women’s shoe section, there are the following URLs:

  • https://www.my-shop.com/womens-shoes/sports-shoes/brand/
  • https://www.my-shop.com/brand/womens-shoes/sports-shoes/

Why would you do such a thing? Users take both navigation paths when clicking through the pages of your online shop.

The Performance report in Search Console shows that the second URL ranks better than the first, yet neither ranks well. The likely reason is that they compete against each other for the same keywords. In SEO, this is referred to as cannibalisation. The search engine cannot decide which page is better since both are nearly identical. Perhaps the second URL has slightly more emotional images, but the product range and thus the text are identical.

There are now two problems:

  • Neither of the two pages makes it to the top positions in the ranking.
  • Neither page can be removed, because shoppers use both paths equally when browsing.

The solution is a canonical tag on the weaker URL.

Of course, you want to keep (and improve) the traffic from search engines, so you set the canonical on URL 1 and refer to URL 2, the stronger page. This gives the search engine the signal that URL 1 should exist, but is a ‘clone’ of the second URL and can therefore be ignored in the search engine index.

If this has been implemented correctly (see code example below), you should find that the search engines drop URL 1 from the index. And URL 2 can receive higher rankings and thus more traffic from the search engine.

Technical implementation of the canonical tag

On www.my-shop.com/womens-shoes/sports-shoes/brand/ insert the following code in the head section:

<link rel="canonical" href="https://www.my-shop.com/brand/womens-shoes/sports-shoes/" />

On www.my-shop.com/brand/womens-shoes/sports-shoes/ insert the following code in the head section:

<link rel="canonical" href="https://www.my-shop.com/brand/womens-shoes/sports-shoes/" />

Now you have the following situation:

  • URL 1 points to URL 2 as its canonical
  • URL 2 points to itself as its canonical

The implementation is simple. Nevertheless, there are a few pitfalls that should be taken into account.

  1. Make sure there are no conflicts with the XML sitemap. Only indexable content belongs there, and a canonicalised URL (URL 1 in the example) does not.
  2. If it is a multilingual site, make sure that the canonical and hreflang tags do not contradict each other.
  3. And if a URL has been set to noindex, then no canonical should refer to it.
  4. Canonical references to pages that deliver errors (example: 404 page) or to redirected pages send a technically incorrect signal to search engines.
  5. Always use the full, absolute URL including protocol and host in the canonical.
  6. For files without an HTML head, such as PDFs, set the canonical in the HTTP header.

If the signals contradict each other, for example because of one of the problems above, Google may disregard the canonical and choose a different URL. If one of the two pages is no longer needed at all, a 301 redirect is the better option. Other causes of duplicate content and how to fix them are covered in the entry on duplicate content.

Would you like us to review your canonicals and indexing? Send us an email or call us on +49 228 243 313 53. We also train teams in our SEO seminars.



 Your next step 

Do you need support with Canonical?

Our page Technical SEO explains how we work. In an initial consultation, we clarify what makes sense for your website.


Request a consultation
 Request a consultation 

Questions about this topic?

Tell us briefly what it is about. You will speak directly to Ralph Grundmann.
Microsoft Partner Badge
SISTRIX-zertifizierte Agentur
4.9
Based on 32 reviews

Reviews from our Google Business Profile. We check every review against our client projects.

Request a consultation
Ralph Grundmann
Ralph GrundmannFounder and Managing DirectorCall: +49 228 243 313 53

* Required

Please enter your name.

Please enter a valid email address, e.g. name@company.com.

For a call back.

Please enter your number with area code, e.g. +49 228 243 313 53.

Please tell us briefly what it is about.

Free and without obligation. We usually reply on the same working day.

Information on how we process your data: Privacy policy