No content to show
User Activity
Just want to confirm if Shopify will set every page to robots noindex under shopifypreview.com? This is the code I found in preview site, but not on live site. Why? I am working on logic to set noindex to certain pages,of course I need to run it fi...
09-08-2022
The other solution - it works as confirmed if you have the filters in the URLs: {% if template contains 'collection' and current_tags %}
<meta name="robots" content="noindex" />
<link rel="canonical" href="{{ shop.url }}{{ collection.url }}" />
{% ...
This works! This should be in the library!
09-08-2022
Same here - is there a way to locate the filter and set rules? So far I can use metafield with noindex set to false or true, but I don't want to filter pages to be indexed.
See this thread:https://community.shopify.com/c/technical-q-a/what-drives-this-script/td-p/659748 Solution at the end.