Setting canonical tags correctly to avoid duplicate content

Duplicate content is detrimental to your SEO. It dilutes your authority, makes it unclear to search engines which version to index and can lead to ranking loss. Canonical tags are the solution to controlling this problem. In this article, I explain how to set them correctly and what to avoid.

1. What is a canonical tag?

A canonical tag is an HTML element that indicates which URL is the preferred version of a page that contains (potentially) duplicate or similar content.

Example:

html
 <link rel="canonical" href="https://www.jouwdomein.nl/originele-pagina/" />
Copy to Clipboard

Search engines use this signal to group all variants and show one version in search results.

2. When do you use canonical tags?

Canonical tags are relevant at:

  • Pagination (e.g., /page-2/, /page-3/)
  • UTM parameters or tracking links
  • Filter or sort variants (e.g. ?color=red)
  • Identical content on multiple URLs (e.g., print versions or landing page variations)
  • Cross-domain duplication (if the same content is on multiple domains)

3. Technical implementation (HTML).

You place the canonical tag in the of each page. This can be done manually or through a CMS/plugin.

Standard HTML:

html
 <head>
   <link rel="canonical" href="https://www.jouwdomein.nl/huidige-pagina/" />
 </head>
Copy to Clipboard

Every page must contain a self-referencing canonical – even if there is no duplication.

Aan de slag met SEO? Neem gerust contact op.

Senior SEO-specialist






    4. Implementation in WordPress

    Are you using WordPress? Then the canonical tag is automatically generated by:

    • Yoast SEO
    • Rank Math
    • All in One SEO Pack

    Always check that the generated URL matches the actual canonical version – especially with custom post types or dynamic content.

    5. Multiple pages with the same content?

    Suppose you have a product page accessible via:

    • /producten/seo-tool/
    • /shop/seo-tool/
    • /seo-tool?ref=partner123

    → All pages then get the canonical to:

    html
    <link rel="canonical" href="https://www.jouwdomein.nl/producten/seo-tool/" />
    Copy to Clipboard

    Note that this must be done consistently or Google will ignore the tag.

    6. Common mistakes

    ErrorConsequence
    Canonical to wrong URLUnintentionally promoted the wrong page
    No self-referencing canonicalSearch engines doubt primary version
    Multiple canonicals on one pageGoogle ignores both
    Canonical on 404/noindex pagesAttenuated signal – placing canonicals only on indexable pages
    Canonical and hreflang combine without correct link networkConfusion over language/regional classification

    7. Combine canonical with other SEO elements

    • Sitemaps: include only canonical URLs
    • Hreflang tags: use the canonical to the language variant of the page itself
    • Redirects: avoid canonical and redirect together (choose one method)

    8. Testing and verification

    Use these tools to test your canonical tags:

    • URL inspection in Google Search Console
    • Screaming Frog > Canonicals-tab
    • Ahrefs / Sitebulb / Sitechecker
    • Chrome DevTools > View Source / Inspect > Search for canonical

    In conclusion

    Canonical tags are essential to concentrate SEO value and avoid confusion for search engines. By applying them consistently and correctly, you proactively manage duplicate content and ensure that your preferred URL ranks better in Google.

    Senior SEO-specialist

    Ralf van Veen

    Senior SEO-specialist
    Five stars
    My clients give me a 5.0 on Google out of 85 reviews

    I have been working for 12 years as an independent SEO specialist for companies (in the Netherlands and abroad) that want to rank higher in Google in a sustainable manner. During this period I have consulted A-brands, set up large-scale international SEO campaigns and coached global development teams in the field of search engine optimization.

    With this broad experience within SEO, I have developed the SEO course and helped hundreds of companies with improved findability in Google in a sustainable and transparent way. For this you can consult my portfolio, references and collaborations.

    This article was originally published on 4 June 2025. The last update of this article was on 18 July 2025. The content of this page was written and approved by Ralf van Veen. Learn more about the creation of my articles in my editorial guidelines.