Quick answer: To keep a Shopify page out of Google, add a meta robots noindex tag to its
by editing theme.liquid to output<meta name="robots" content="noindex"> conditionally for the pages you want excluded (there is no admin toggle). Do NOT block the page in robots.txt instead — a Disallow stops Google from crawling the page, so it never sees the noindex and the URL can still surface as a bare link. Allow crawling, use noindex. Common targets: internal search results, cart, account, and heavily faceted collection URLs.
Sometimes the SEO win is keeping a page out of search, not in it — internal search result pages, faceted duplicates, and utility pages dilute your store’s crawl focus. The mistake most merchants make is reaching for robots.txt, which is the wrong tool and quietly makes the problem worse.
noindex vs robots.txt — the distinction that matters
These sound interchangeable and are not:
noindex(a meta tag or header) says: crawl this page, but keep it out of the index.- robots.txt
Disallowsays: do not crawl this page at all.
Here is the trap. If you Disallow a URL, Googlebot cannot fetch the page — so it never sees a noindex tag you put there, and the URL can still appear in results as a bare, description-less link because Google knows it exists but was told not to look. To reliably remove a page from the index, you must let Google crawl it and find a noindex. The two directives conflict; pick noindex for "keep it out of search."
How to noindex on Shopify
Shopify has no admin switch for this, so it is a conditional edit in Online Store → Themes → Edit code → theme.liquid, inside the <head>:
{% if template contains 'search' or template contains 'cart' %}
<meta name="robots" content="noindex">
{% endif %}
Key the condition on what identifies the pages you want excluded — the template name, a specific page handle, or a URL pattern. Keep the rule narrow: a condition that matches a template too broadly can silently noindex pages you want ranking, which is the most common self-inflicted wound here.
What to noindex (and what never to)
Reasonable candidates: internal search results pages, the cart and account pages, tag-filtered or heavily faceted collection URLs that create near-duplicates (though Shopify canonicalizes many of those already), and occasionally thin utility pages. Never noindex your products, collections, blog posts, or key landing pages — and re-read any broad rule before you ship it.
Verify it worked
View source and confirm <meta name="robots" content="noindex"> is in the <head> of the pages you targeted — and absent from everything else. Then run the page through Google Search Console’s URL Inspection, which reports indexability and whether it saw the noindex. Removing an already-indexed page takes a crawl cycle: the directive applies when Google next fetches the page, not instantly. If you need it gone faster, request indexing (which prompts a re-crawl) after confirming the tag is live.
RankEngine