Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025