All things Shopify and commerce
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!
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:
Canonical Tags: Verify that Shopify is correctly setting the canonical tag on your product pages. This tells Google which URL to index.
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
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?
We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024The Hydrogen Visual Editor is now available to merchants in Shopify Editions | Summer '...
By JasonH Sep 2, 2024