Skip to content

Instantly share code, notes, and snippets.

@ECkurt
Created June 17, 2016 15:11
Show Gist options
  • Save ECkurt/d6da6a6936817e3b3f8b7e40dd0d4f21 to your computer and use it in GitHub Desktop.
Save ECkurt/d6da6a6936817e3b3f8b7e40dd0d4f21 to your computer and use it in GitHub Desktop.
Shopify Collection Tags Duplicate Content Fix
{% if template contains 'collection' and current_tags %}
<meta name="robots" content="noindex" />
<link rel="canonical" href="{{ collection.url }}" />
{% else %}
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}
@ikytai
Copy link

ikytai commented Dec 31, 2019

It works perfect! Thank You!
If I want to solve the ''collection pagination duplication'' on Shopify, what code I have to use and where I should inject to Shopify?

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment