Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Shopify /collections/x/products/y duplicate URLs: fix guide

SEO-063Low impactOther toolBy FunnelGuardPublished Updated
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.

How one product gets several URLs
  1. Product added to 3 collectionsShopify creates a path for each
  2. Theme links to /collections/x/products/yLong URLs are crawled and shared
  3. Canonical missing or wrongSignals split across URLs
  4. 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

Check one product
  1. 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.

  2. View the page source

    Right-click, choose View page source, and search for canonical.

  3. Compare the canonical

    It should be https://yourstore.com/products/blue-shirt with no /collections/ part.

  4. Inspect the URL in Search Console

    Paste the long URL into URL Inspection. Compare 'User-declared canonical' with 'Google-selected canonical'.

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

Fix by platform
  1. Back up the theme

    Go to Online Store > Themes, open the menu next to your theme and choose Duplicate.

  2. Check the canonical in theme.liquid

    Choose Edit code and open layout/theme.liquid. Make sure the head contains the canonical line shown below.

  3. 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: collection with product.url.

  4. Check apps

    Some apps and feeds output collection URLs. Review their settings for a product URL option.

Canonical tag in theme.liquid headliquid
<link rel="canonical" href="{{ canonical_url }}">
Product link in a card: before and afterliquid
{%- 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>
Product URLs before and after

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

Confirmation checks
  • 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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.