Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello, I want to add a Noindex tag to our URLs that have parameters or a question mark in them but I can't find a solution. I tried the following code but it doesn't work:
{% if template.name == "collection" and current_tags %}
<meta name="robots" content="noindex,nofollow" />
{% endif %}
Basically what's happening is that Google is indexing thousands of URLs for collections with filters (e.g. https://www.allcam.nl/collections/dashcams?filter.p.m.custom.touchscreen=0&filter.p.m.custom.wifi=0&...). The URLs have correctly pointed canonical URLs but the pages are blocked by Robots.txt which is why Google isn't crawling or loading the pages and therefore not seeing the canonical URL (I think?). I surely can't be the only one with this problem?
Thanks for any help.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025