How to fix duplicated content for SEO improvement?

If you want to improve SEO ranking by fixing duplicated content warnings, you can use the following code inside your HEAD tag on the KB Template‍:

{% 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 custom domain.

Was this article helpful?

Can't find what you're looking for?

Contact Support