I'm working on an eCommerce store using the shopify platform. I read that sorting filters and pagination can lead to duplicate content issues (especially on stores like mine with a lot of text on collection pages).
For example these four pages would all be viewed as duplicate content:
widgets.com/collection/bluewidgets
widgets.com/collections/bluewidgets?page=2
widgets.com/collections/bluewidgets?sort_by=title-descending
widgets.com/collections/bluewidgets?page=2&sort_by=title-descending
^ The first page is the page i actually want indexed, the additional pages are extra pages created by pagination or sorting
I read this article about the issue, although i'm not sure the code included in the article will help my site specifically. https://leanmetrics.io/blog/3-most-common-seo-problems-shopify/
I added this code from the article:
How can i test to see if the pages i do no want indexed are marked "noindexed"?
Will this code actually fix my problems?
I know nothing about coding, but I'm not sure if the "and current_tags %" part is applicable to my site's issues.
Thanks
For example these four pages would all be viewed as duplicate content:
widgets.com/collection/bluewidgets
widgets.com/collections/bluewidgets?page=2
widgets.com/collections/bluewidgets?sort_by=title-descending
widgets.com/collections/bluewidgets?page=2&sort_by=title-descending
^ The first page is the page i actually want indexed, the additional pages are extra pages created by pagination or sorting
I read this article about the issue, although i'm not sure the code included in the article will help my site specifically. https://leanmetrics.io/blog/3-most-common-seo-problems-shopify/
I added this code from the article:
Code:
{% if template contains 'collection' and current_tags %}
<meta name="robots" content="noindex" />
<link rel="canonical" href="{{ shop.url }}{{ collection.url }}" />
{% else %}
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}
How can i test to see if the pages i do no want indexed are marked "noindexed"?
Will this code actually fix my problems?
I know nothing about coding, but I'm not sure if the "and current_tags %" part is applicable to my site's issues.
Thanks