Canonical tags explained – How to prevent duplicate content in SEO

Canonical tags explained – How to prevent duplicate content in SEO
Micky Weis
Micky Weis

15 years of experience in online marketing. Former CMO at, among others, Firtal Web A/S. Blogger about marketing and the things I’ve experienced along the way. Follow me on LinkedIn for daily updates.

Canonical tags are one of the technical SEO elements that is often overlooked but can have a significant impact on a website’s visibility in search engines.

Many focus on content, structure, and links, but without proper handling of canonical tags, even the best content can lose value in Google’s eyes.

In this article, we dive into what a canonical tag is, why it is important, and how to use it correctly as part of your SEO strategy.

What is a canonical tag?

A canonical tag is an HTML element used to tell search engines which version of a page should be considered the primary or preferred version.

It is typically used in situations where multiple URLs exist with very similar or identical content.

Instead of letting search engines guess which page is the most important, a canonical tag allows you to take control.

A canonical tag is inserted in the <head> section of a page and looks like this:

<link rel=”canonical” href=”https://www.example.dk/preferred-page/” />

This signals to search engines that the specified URL is the version that should be indexed and ranked in search results.

Why are canonical tags necessary?

Duplicate content is one of the most common technical SEO challenges.

It often occurs without being immediately obvious.

Examples of situations where duplicate content can arise include:

  • Filtering and sorting in online stores
  • URL parameters (tracking, campaigns, session IDs)
  • HTTP vs HTTPS
  • With or without www
  • Print friendly versions of pages
  • Category pages with pagination

When multiple URLs display the same or very similar content, search engines may struggle to determine:

  • Which page to index
  • Which page should rank
  • How link value should be distributed

The result can be reduced visibility, diluted link value, and in some cases, the “wrong” page appearing in search results.

Here, the canonical tag plays a central role by consolidating signals in one place.

How does a canonical tag affect SEO?

When a canonical tag is used correctly, it helps search engines understand the structure of your website. This has several positive effects on SEO.

Consolidation of link equity

If multiple URLs point to each other or receive external links, link equity can be spread out.

A canonical tag can consolidate this value on a single preferred URL, strengthening the overall authority of that page.

Improved crawl budget

Search engines have a limited crawl budget per website.

If crawlers spend time indexing many nearly identical pages, it reduces the attention given to other important content. Canonical tags help reduce unnecessary crawling.

More stable rankings

By clearly indicating the primary version of a page, you reduce the risk of Google switching between different URLs in search results.

Canonical tag vs 301 redirect

A common question is when to use a canonical tag instead of a 301 redirect.

A 301 redirect is used to permanently forward users and search engines from one URL to another. The user always ends up on the new URL.

A canonical tag, on the other hand:

  • Keeps both URLs accessible
  • Tells search engines which is preferred
  • Does not directly affect user experience

When does a canonical tag make the most sense?

A canonical tag is particularly relevant in situations where multiple versions of the same or very similar content need to exist side by side without causing issues for search engines.

When multiple URLs exist in parallel

If the same content is accessible via different URLs – for example, with and without www, via HTTP and HTTPS, or through different URL structures – a canonical tag can indicate which version should be considered primary.

This prevents keyword cannibalization and ensures SEO value is consolidated.

For filtered and sorted pages in online stores

Online stores often generate many URLs based on filters, sorting, and pagination.

While these pages can be useful for users, they often contain overlapping content.

Canonical tags can point back to the original category page so that search engines do not index a large number of nearly identical pages.

For campaign and tracking parameters

URLs with UTM tags and other tracking parameters can create multiple variants of the same page.

By using a canonical tag, you ensure Google ignores the parameters in indexing and instead focuses on the clean, original URL.

When is a 301 redirect better?

In some cases, a canonical tag is not the most appropriate solution. A 301 redirect can provide a stronger and more explicit signal to both users and search engines.

When a page has moved permanently

If a page has a new URL and the old one should no longer be used, a 301 redirect is the correct solution.

The redirect tells search engines that the content has moved permanently and that all SEO value should transfer to the new URL.

When the old URL should not be accessible

Unlike canonical tags, where the alternate URL is still accessible, a 301 redirect effectively removes the old page from the user experience.

This is beneficial when the old URL no longer has function or relevance.

When consolidating content

When multiple pages are merged into a single, more comprehensive page, a 301 redirect is often the best approach.

It ensures that both users and search engines are automatically directed to the new consolidated page while preserving existing links and authority.

In many cases, the two methods complement each other as part of a comprehensive technical SEO strategy.

Self-referencing canonical – why it matters

A common best practice is to use a self-referencing canonical tag.

This means the page points to itself as the canonical version.

Example:

Even if no duplicate versions exist, this sends a clear signal to search engines that this URL is the preferred version.

This is especially valuable when:

  • URLs can be accessed with parameters (extra URL parameters used for filtering, sorting, tracking, or campaign attribution)
  • Content is shared via different campaign links
  • The CMS automatically generates alternative URL structures

Common mistakes with canonical tags

Even though canonical tags are relatively simple, implementation errors are common.

Chains of canonical tags

If page A points to page B, and page B points to page C, it can confuse search engines. It is best to always point directly to the final preferred URL.

Mismatches between canonical and internal links

If your internal links consistently point to one URL, but the canonical tag points to another, you send conflicting signals.

Using noindex with canonical

In some cases, noindex is combined with canonical, which can create ambiguity. Be conscious of why both are used on the same page.

Canonical tags in online stores

Online stores benefit greatly from correct use of canonical tags.

Filters like color, size, price, and sorting can quickly generate hundreds or thousands of URLs with almost identical content.

Example:

  • /shoes?color=black
  • /shoes?color=black&sort=price
  • /shoes?color=black&stock=yes

Canonical tags can point all variations back to the primary category page.

It is important to evaluate whether some filter combinations have search volume and should be indexed individually.

Canonical tags and international SEO

For websites with multiple languages or country versions, canonical tags can quickly become complex.

It is important to distinguish between canonical and hreflang:

  • Canonical indicates which version is primary
  • Hreflang indicates which version is relevant for which language or country

Each language version should have its own self-referencing canonical tag and be supplemented with correct hreflang markup.

How to implement a canonical tag correctly

Implementation often depends on your CMS or e-commerce system.

In CMS systems

Many CMS platforms like WordPress, Shopify, and Magento support canonical tags automatically or via plugins.

You should:

  • Check that the canonical is generated correctly
  • Avoid dynamic errors
  • Ensure consistency across pages

Manual implementation

For manual implementation, insert the canonical tag directly into the <head> section.

Pay attention to:

  • Use absolute URLs
  • Ensure the URL is correctly formatted
  • Include only one canonical tag per page

How to test and verify canonical tags

After implementation, it is important to test whether canonical tags work as intended.

Tools you can use:

In Google Search Console, you can see which URL Google has chosen as canonical and whether it matches your intended version.

When does Google ignore a canonical tag?

It is important to note that a canonical tag is a signal – not a guarantee.

Google reserves the right to decide which page version is most relevant to index, and may ignore a canonical tag if it conflicts with other signals.

This typically occurs when:

  • The content of the pages differs significantly, so Google does not see them as true duplicates
  • Conflicting signals are sent via internal links
  • The canonical page is blocked from indexing via txt, noindex, or technical errors

In such cases, Google may override the canonical and choose the URL that appears most authoritative and relevant.

Canonical tags should therefore not be used in isolation but considered as part of an overall SEO strategy.

They work best when supported by a consistent internal link structure, correct redirects, well configured XML sitemaps, and controlled crawl and index behavior.

When all these elements align, they create a clear signal to search engines, increasing the likelihood that Google respects the canonical choice and that the desired page receives full SEO value.

A small technical detail with big impact

Although canonical tags may seem like a minor technical detail, they can have a significant impact on a website’s performance in search engines.

Proper use of canonical tags contributes to:

  • Better indexing
  • Stronger ranking
  • More efficient crawl budget usage

Companies and marketing managers who take technical SEO seriously will benefit greatly from understanding and correctly implementing canonical tags.

It is not about using them everywhere but about using them in the right places – strategically and with clear intent

Comments

Leave a Reply