Shopify Quick Fixes - Hide Page/Template From Search
Since Shopify generates sitemaps automatically there's no way for you to manually remove links in your sitemap that search engines will index, so here's a workaround for telling search engines not to index a certain page/template/etc. This is helpful if you're testing something in your shop or you're using ajax and you don't want certain pages to be directly accessible.
You can use this meta tag (in the head) with an if conditional to check for a template or page you want to exclude from search engines, 'noindex' means to exclude the current page and 'follow' means to allow the search engine to index the other pages on your site.
You can read more about using this meta tag here.
Here's an example with the liquid if conditional.
See Liquid Global Variables for variables you can use to detect a page, collection, template, etc.
See my previous post with Shopify Tips, Tricks, and Resources.
Resources
Shopify Cheat Sheet
Lessons Learned from Building Shopify Themes