Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Customization Guides
  • Advanced Customization

How To Fix Duplicated Content For SEO Improvement?

Written by Emil Hajric

Updated at April 15th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Customization
    Customization Guides
  • Article Editor
  • Getting Started
    Managing Users Analytics Content Management Permissions & Accessibility Video Tutorials
  • Integrations
  • API & Webhooks
    API V2 API V3
  • Languages & Translations
  • Authentication
  • Swifty AI
  • Settings
    User Settings User Behavior Knowledge Base Settings Custom Domain
+ More

If you're looking to improve your SEO ranking and reduce duplicated content warnings, adding canonical tags to your knowledge base (KB) pages is a great place to start. Canonical tags tell search engines which version of a page is the "preferred" one, helping consolidate indexing and avoid penalization for duplicate content.

Knowledge Base Template

To implement canonical tags, insert the following code inside the HEAD tag of your Main Layout file:

{% if on_index_page %}
<link rel="canonical" href="https://ADDRESS" />
{% elsif on_show_question_page %}
<link rel="canonical" href="https://ADDRESS{{ question.url }}" />
{% elsif on_contact_us_page %}
<link rel="canonical" href="https://ADDRESS/contact-us" />
{% elsif category.name != null %}
<link rel="canonical" href="https://ADDRESS{{ category.url }}" />
{% else %}
<link rel="canonical" href="https://ADDRESS/thanks" />
{% endif %}

Note: Replace ADDRESS with your Helpjuice subdomain or your custom domain.

This setup ensures that each type of page on your KB (home, article, category, contact, etc.) is indexed with its correct canonical URL.

Multilingual KBs

If your knowledge base supports multiple languages, it's important to know that each language section has its own Main Layout file. That means you'll need to add the canonical tag logic separately for each language version.

Doing this ensures that search engines correctly interpret each language version as its own distinct, canonical source.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Adding Custom CSS
  • Using Custom Inputs On Your Contact Form
  • Shopify/Liquid Variables and Objects Reference
  • Integrating Your Knowledge Base With Your Ticketing System
One Knowledge Base To Replace Them All
24/5 support
Constant Product Updates & Improvements
100% money back guarantee
99.9% Uptime
Features
  • AI Knowledge Base AI-Enabled
  • Helpjuice Extension AI-Enabled
  • Powered Editor AI-Enabled
  • Advanced Analytics AI-Enabled
  • Customizable Themes AI-Enabled
  • Swifty · Helpbar & Chatbot AI-Enabled
  • Multi-Language Support
  • Step-by-Step Tutorial Creator
  • Seamless Integrations
  • User Access Control
  • See All Features >>
Product
  • Product Roadmap
  • Pricing
  • Book a Demo
  • Policies & Security
  • Our Customers
  • About Helpjuice
  • Contact Our Team
Resources
  • Our Knowledge Base
  • Webinars
  • Success Stories
  • API Documentation
  • Data Import Guide
  • Helpjuice Blog
Copyright © 2025, Helpjuice Inc.
Helpjuice, Inc. is a registered US Corporation.
EIN 46-2257741 | Download W9
Made in America High Performer Ease of Use Get Support
Get Started For Free
4.8 average review on
Life’s too short to use mediocre software.
+1 (833) 387 3877
Powered by Helpjuice Helpjuice Swifty AI External Link
Expand