On this page
What this issue is
Shopify builds a product page at its main address, /products/blue-shirt. It also builds the same page under every collection the product belongs to, such as /collections/shirts/products/blue-shirt. The content is identical. Only the URL differs.
These are duplicate URLs: different addresses that show the same page. Search engines have to pick one to show. A canonical tag (rel=canonical) is a line in the page head that names the preferred address.
Why it costs you leads or sales
The direct impact is low when the canonical works. The risks are quieter. Search engines may split signals such as links and clicks across several URLs. Google may pick a collection URL as the one to show. Analytics reports may list the same product under several paths, which makes product data harder to read.
Shared links add to this. If a visitor copies the long URL, backlinks and shares go to a variant instead of the main page.
- Product added to 3 collectionsShopify creates a path for each
- Theme links to /collections/x/products/yLong URLs are crawled and shared
- Canonical missing or wrongSignals split across URLs
- Search shows a variantReports are harder to read
The canonical tag should pull every variant back to one address.
How to check if your site has it
Open a collection page
Click a product from the collection. Look at the address bar. If it contains /collections/ and /products/, the variant URL is in use.
View the page source
Right-click, choose View page source, and search for
canonical.Compare the canonical
It should be
https://yourstore.com/products/blue-shirtwith no /collections/ part.Inspect the URL in Search Console
Paste the long URL into URL Inspection. Compare 'User-declared canonical' with 'Google-selected canonical'.
Search your site
Search Google for
site:yourstore.com inurl:/collections/ inurl:/products/to see if variants are indexed.
How to fix it
You cannot switch off the collection paths in Shopify. The fix is to make the canonical correct and make your own links use the short URL.
Back up the theme
Go to Online Store > Themes, open the menu next to your theme and choose Duplicate.
Check the canonical in theme.liquid
Choose Edit code and open layout/theme.liquid. Make sure the head contains the canonical line shown below.
Link to the short URL
In product card files (often snippets/product-card.liquid or card-product.liquid, names vary by theme), replace
product.url | within: collectionwithproduct.url.Check apps
Some apps and feeds output collection URLs. Review their settings for a product URL option.
Headless or custom storefront
Render one canonical product URL on every route that can show the product, and link internally only to that URL.
<link rel="canonical" href="{{ canonical_url }}">{%- comment -%} Before: long URL {%- endcomment -%}
<a href="{{ product.url | within: collection }}">{{ product.title }}</a>
{%- comment -%} After: short URL {%- endcomment -%}
<a href="{{ product.url }}">{{ product.title }}</a>Before
- Collection cards link to /collections/x/products/y
- Several URLs per product get crawled
- Analytics lists the same product under many paths
After
- Cards link to /products/y
- Canonical names one URL
- Reports and links point to one address
How to confirm it's fixed
- Clicking a product from a collection opens /products/y
- Page source of a /collections/x/products/y URL shows a canonical to /products/y
- Only one canonical tag appears in the head
- Your sitemap.xml lists /products/ URLs only
- Search Console shows the /products/ URL as Google-selected canonical
Google may take weeks to reflect the change. Request indexing for key products if you want to speed it up.
How to prevent it happening again
- Keep the canonical line when you edit or switch themes
- Review product links after installing a new theme or app
- Check the Pages report in Search Console each month for 'Duplicate, Google chose different canonical'
- Use the /products/ URL in ads, emails and feeds
How FunnelGuard handles this
FunnelGuard does not check this yet. Duplicate product URLs are a possible future check.
What FunnelGuard does today is run your real customer journeys, such as a checkout or lead form, on a schedule. It checks each step and the tracking hits sent to ad and analytics platforms. That covers whether the funnel works, not which product URL is canonical.
To watch for duplicates yourself, use Google Search Console's Pages report and URL Inspection, or run a crawler such as Screaming Frog and filter for non-indexable and canonicalised URLs. A free read-only website audit from FunnelGuard is also available.
Questions people ask
Why does Shopify have two URLs for the same product?
Shopify gives each product a main URL, /products/y, and also a path under each collection it belongs to, /collections/x/products/y. This lets themes show collection context. The page content is the same on both.
Does Shopify duplicate product URL hurt my SEO?
Usually only a little. Shopify themes add a canonical tag that points to the /products/ URL, which tells search engines which one to use. The risk rises if the canonical is removed or your links point to the long URL.
How do I remove /collections/ from Shopify product URLs?
You cannot turn off the collection paths themselves. You can edit your theme so product links use product.url instead of product.url | within: collection. The canonical tag then handles any remaining variants.
How do I check the canonical tag on a Shopify product page?
Open the product page, view the page source and search for rel="canonical". The href should be the /products/ URL with no collection path. Search Console's URL Inspection shows what Google chose.
Should I use noindex on /collections/x/products/y pages?
Not normally. A canonical to the /products/ URL is the standard approach and keeps the pages usable. Blocking them can create other problems, so fix links and canonicals first.
Why does Search Console say 'Duplicate, Google chose different canonical than user'?
Google picked another URL than the one in your canonical tag. On Shopify this is often a collection-path URL that is heavily linked internally. Update internal links to the /products/ URL and wait for a recrawl.
Does FunnelGuard check for duplicate product URLs?
No. FunnelGuard does not check this yet; it is a possible future check. Use Search Console or a site crawler to watch for it.
Related issues
- SEO-062Duplicate product pages across multiple category pathsFix guide
- SEO-042Missing rel=canonical on indexable pagesFix guide
- SEO-052Google chose a different canonical than declaredFix guide
- SEO-043Canonical points to a 404, redirect or noindex URLFix guide
- SEO-058UTM or click-ID parameter URLs indexed as duplicatesFix guide
- SEO-060Sort and filter parameters create duplicate category pagesFix guide