Liquid, JavaScript, themes, sales channels
Greetings.
i have a problem with duplicate content on my website.
I have a collection:
https://ydale.dk/collections/vedhaeng-af-solv
Which includes products with tags. now if a customer presses the tag "Sterling Sølv" he will be led to this URL
https://ydale.dk/collections/vedhaeng-af-solv/sterling-solv
which is the same collection, but only with products that have the tag "Sterling Sølv"
HOWEVER. Google think this is a new site, which creates "Duplicate Content" across my website.
I have looked but cannot find a solution for this problem 😞
Hope someone can help. i suspect the solution is something similar to this problem (which i have fixed):
https://www.soardigital.co.uk/common-shopify-seo-issues-how-to-fix-them (first mention)
This solution does not help the "Tag" collections though, only duplicate products.
The best way is to set Product Tags to “noindex, follow”.
Essentially, you are informing Google not to add this page to their index (search results), but still to follow links on the page.
You can add the following code snippet to your theme.liquid template file:
{% if template contains 'collection' and current_tags %} <meta name="robots" content="noindex, follow" /> {% endif %}
By doing that, you set all product tag pages to noindex, so Google shouldn’t pick up those product tags pages.
Hey, @Pooperpotamus
To add to what @claricelin recommended: check out our best practices guide on canonical URLs to gain a better understanding of how Shopify handles these sorts of URLs by default and what you can do going forward as best practices.
If there is anything else I can help you with, please let me know.
Dirk | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
User | RANK |
---|---|
33 | |
27 | |
17 | |
9 | |
9 |
We're excited to announce improvements to the threaded messaging experience in our communi...
By TyW May 31, 2023Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...
By Jacqui May 30, 2023Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023