Liquid, JavaScript, themes, sales channels
The store I handle has 3K pages but the indexed pages show 70K+ due to inactive pages, URL variation pages and query parameters pages. How do I stop Google from doing that?
I saw this video: https://www.youtube.com/watch?v=PiTeu7RgCtE and came up with the following code to be added to the header of the theme.liquid.
Questions:
1. Will it solve my problem ?
2. Will there be any negative SEO impact that I need to be aware of?
Code:
{% if template contains ‘search’ or handle contains ‘variant=’ or handle contains ’size’ or handle contains ’color’ or handle contains ’sort_by=’ or handle contains ’page=’ or handle contains ’vendor=’ or handle contains ’/search’ }
<meta name=“robots” content=“noindex”/>
{% endif %}
Appreciate your expert inputs on this.
User | RANK |
---|---|
37 | |
27 | |
14 | |
13 | |
9 |
Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023