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.
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.
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?
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.