How to resolve pagination and SEO issues causing duplicate content?

Hello Shopifyer’s,

I’ve a Shopify shop in which we’ve had pagination on our “collection” pages, however this created a small SEO issue with duplicate content, so we decided to remove pagination and have all products showed on 1 page.

However, even tho we’ve made this change, the old pages like " /collections/stue?page=1 " and " /collections/stue?page=2 " etc. is still on the websites and indexed by Google, which makes a duplicate content issue, as the text is duplicated on all the pages.

Thanks in advance!

What to do here?

Hi There,

The best fix for this while being the easiest way to do this without having to become a coding genius is the following…

Go to your theme.liquid file and find

Change to…

{% if template contains ‘collection’ %}

{% else %} {% endif %}

Best

Fat Fish Marketing

4 Likes

What excatly will this do? I’m familiar with canonical tag, however i need to know and understand what excatly this code will do with my collectionspages and their paginationpages.

It sounds to me that you are using the standard shopify canonicalization. (The practice of stating to google that 2+ pages are just different versions of 1 and that is that 1).

In shopify default however it does not canonicalize by default the ?Page. So you get your problem.

So this code says …

| IF the template of the page being used is that of a collection, canonicalize that page to the “Shop/Collection” no matter what.

Otherwise stick to standard. |

Best

Fat Fish Marketing - Joshua

We started noticing issues in Google’s index related to this a few months after our migration to Shopify. Kind of shocked that in 2022 Shopify doesn’t handle pagination correctly from a canonical URL standpoint. Is this really something merchants have to be on the lookout for?

1 Like

Looking at this solution, but my code looks like this:

{%- comment -%}Auto-disabled. Yoast plugin is taking care of Meta Tags output.{%- endcomment -%}
{%- if disabled_by_yoast_seo -%}

{%- comment -%} End Yoast auto-disable. {%- endcomment -%} {%- endif -%}

Even the line in question doesn’t have the closing /

Does this matter, what should I do?

Thanks!!

Bro, you are the best!!! Thanks

1 Like

I made this code change and it had no affect at all. Not sure why??

Glad I could help

Joshua

Fat Fish Marketing

Whats your store URL? I will have a look

Joshua

Fat Fish Marketing

Hi There,

It looks like you have installed the Yoast SEO Plugin. I have not had the need for it before and like to save the $240 a year. However, If you share me the URL to your store I would love to see if you still have this issue. If that is the case, I would just remove and replace that code. As Yoast is not doing the task and it will only impact the canonical. However, I imagine if they have done this, they have their own canonical version somewhere.

Best

Joshua

Fat Fish Marketing

This worked great!

Hi there, this solution works well for me on the collections page.
Could you suggest how I can do the same for blogs?

Legend Sir! it worked. Now just have to see how this will impact on SEO.