All things Shopify and commerce
Hi Guys
I am hoping someone can help me please, I would like to arrange my sites product and collection pages, so they canonicalise correctly for ranking purpose.
I would like my product pages to canonicalise to the collections equivelent.
e.g I would like the below page
https://website/products/foam-roller-set
to canonicalise to:
website/collections/foam-rollers/products/foam-roller-set
<link rel="canonical" href="https://website/collections/foam-rollers/products/foam-roller-set" />
And the below URL to self canonicalise,
website/collections/foam-rollers/products/foam-roller-set
<link rel="canonical" href="https://website/collections/foam-rollers/products/foam-roller-set" />
So Google knows that
https://website/collections/foam-rollers/products/foam-roller-set
Is the URL I want to rank, I have tried adding the canonical tag via an app, but it doesn't work correctly.
So I assume I would have to edit the theme to do this.
Is there a way to drill into individual pages in the editor, or would it have to be a code snippet in the <head>
Any help would be greatly appreciated.
Thanks guys, Kind regards.
Solved! Go to the solution
This is an accepted solution.
Hey @lloydy14 ,
If I understand correctly, you want to canonicalize your product-only URLs to your collection-aware URLs?
Current:
collection-aware URL: /collections/foam-rollers/products/foam-roller-set
product-only URL: /products/foam-roller-set
canonical: /products/foam-roller-set
You want:
collection-aware URL: /collections/foam-rollers/products/foam-roller-set
canonical: /collections/foam-rollers/products/foam-roller-set
AND
product-only URL: /products/foam-roller-set
canonical: /products/foam-roller-set
Do I understand that correctly?
In short, you can't natively nor would I recommend this approach as it could really hurt your SEO. Here are a few reasons why off the top of my head and in no particular order:
Hopefully this helps.
This is an accepted solution.
Hey @lloydy14 ,
If I understand correctly, you want to canonicalize your product-only URLs to your collection-aware URLs?
Current:
collection-aware URL: /collections/foam-rollers/products/foam-roller-set
product-only URL: /products/foam-roller-set
canonical: /products/foam-roller-set
You want:
collection-aware URL: /collections/foam-rollers/products/foam-roller-set
canonical: /collections/foam-rollers/products/foam-roller-set
AND
product-only URL: /products/foam-roller-set
canonical: /products/foam-roller-set
Do I understand that correctly?
In short, you can't natively nor would I recommend this approach as it could really hurt your SEO. Here are a few reasons why off the top of my head and in no particular order:
Hopefully this helps.
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025