Happening now! An exclusive AMA: Optimizing your Inventory Management with Shopify Experts | Ask your questions and be answered in real time!

Duplicate Product URLs on Shopify Affecting Google Ranking

Duplicate Product URLs on Shopify Affecting Google Ranking

Breadpaid
Shopify Partner
3 0 0

Hi everyone,

 

We've encountered an issue with our Shopify store. When we create a product, Shopify automatically assigns it a URL in the format: domain/product/product_name. However, once the product is published, Shopify also generates another URL in the format: domain/collection/sub_collection/product.

 

We only discovered this problem after checking Google Search Console, where we found that these additional URLs cause the product to be marked as canonicalized, which can negatively affect its ranking on Google.

 

We're unsure if this is a feature of the Shopify system or if others have experienced this. Does anyone know why this happens or how to prevent it?

 

Thanks!

 

Replies 2 (2)

EcomGraduates
Shopify Partner
735 63 105

This is a normal behavior in Shopify. Shopify generates multiple URLs for a single product, but it should automatically set the canonical URL to avoid duplicate content issues.

To ensure Google sees the correct URL:

  1. Canonical Tags: Verify that Shopify is correctly setting the canonical tag on your product pages. This tells Google which URL to index.

  2. Google Search Console: Use URL Inspection to check the canonical URL that Google is using.


If this fixed your issue, likes and accepting as a solution are highly appreciated.

Build an online presence with our custom built Shopify Theme EcomifyTheme




Breadpaid
Shopify Partner
3 0 0

thanks for the replying. we have set :


{% if template == 'product' %}
<link rel="canonical" href="{{ product.url }}">
{% elsif template == 'collection' %}
<link rel="canonical" href="{{ collection.url }}">
{% elsif template == 'page' %}
<link rel="canonical" href="{{ page.url }}">
{% elsif template == 'blog' %}
<link rel="canonical" href="{{ blog.url }}">
{% elsif template == 'article' %}
<link rel="canonical" href="{{ article.url }}">
{% else %}
<link rel="canonical" href="{{ shop.url }}">
{% endif %}

 

in the head tag. and we asked google to verify index many many times.  it's not working. google search console still mark thousands of product as canonical. any idea how?