You can prevent a page from appearing in Engine Search by including a
noindex meta tag in the page's HTML code, or by returning a
noindex header in the HTTP request.
This is a tutorial for users who are familiar with the programming languages at least at a basic level. We provide this for educational purposes. If you aren't proficient in this area, please do not try this and hire a Web Developer for Advance Custom Changes instead.
We do not guarantee that preferential customizations will continue to work in the future as new updates or versions of the platform are released, so we advise you to check your custom changes from time to time.
Before you make any change to the code, always make a backup of your site.
As mentioned you must add a noindex meta tag in the
<head> code of the page in question.
There are two ways to implement
noindex: as a meta tag and as an HTTP response header. They have the same effect; choose the method that is more convenient for your site.
To prevent most search engine web crawlers from indexing a page on your site, place the following meta tag into the
<head> section of your page:
<meta name="robots" content="noindex">
To prevent only Google web crawlers from indexing a page:
<meta name="googlebot" content="noindex">
You should be aware that some search engine web crawlers might interpret the
noindex directive differently. As a result, it is possible that your page might still appear in results from other search engines.
You can do this in the theme.liquid file, but you certainly will need to add some logic via Liquid code so it only prevents that specific page from being indexed.
Note: Instead of a meta tag, you can also return an
X-Robots-Tag header with a value of either
none in your response. Here's an example of an HTTP response with an
X-Robots-Tag instructing crawlers not to index a page:
HTTP/1.1 200 OK (…) X-Robots-Tag: noindex (…)