How to add noindex in Shopify product

Summarize this article with AI

Choose your preferred assistant. We’ll copy a prompt with this page’s URL and open a new tab.

Copy this prompt

If you need to hide specific product pages from Google and other search engines, adding a noindex directive is the cleanest approach. This guide explains when to use noindex, what it affects, and multiple safe ways to implement it in Shopify. You will also get a copy-paste Liquid snippet, testing steps, and answers to common FAQs.

Why you might add noindex to a product

  • Out-of-stock or seasonal SKUs that you plan to restock later without deleting the page.
  • Thin or duplicative product content you are still improving before letting it rank.
  • Variant split testing where multiple near-identical products exist temporarily.
  • Internal or wholesale-only items that should be purchasable via direct link but not discoverable in search.

What noindex does and does not do

noindex tells search engines not to include a page in their index. Crawlers may still access the page to read the directive. Links on the page can still be followed if you use noindex,follow.

  • Does: Remove or prevent the page from appearing in search results.
  • Does not: Block crawling outright or secure the page. For blocking, use authentication or consider Disallow with care.

Safe methods to add noindex in Shopify

This approach lets you toggle noindex on any product by adding a product tag such as noindex. It keeps your workflow simple for staff and avoids creating duplicate templates.

Steps

  1. In Shopify Admin, go to Products, open the product you want to hide, and add a tag named noindex. Save.
  2. Go to Online Store → Themes and click Edit code on your active theme.
  3. Open your main layout file, usually layout/theme.liquid.
  4. Inside the <head> but after existing meta tags, paste the following Liquid snippet:
{% comment %} Add 'noindex' product tag to any product you want hidden from search results. This outputs <meta name="robots" content="noindex,follow"> only on tagged product pages. {% endcomment %} {% if request.page_type == 'product' and product and product.tags contains 'noindex' %} <meta name="robots" content="noindex,follow"> {% endif %} 

Notes

  • Use noindex,follow to keep passing authority through your internal links.
  • Only product pages with the noindex tag will emit the meta robots tag.

Method 2: Template-based noindex for dedicated products

Create a special product template that always outputs noindex, then assign it to selected products.

Steps

  1. In Edit code, create a new product template: templates/product.noindex.json (Online Store 2.0) or a Liquid template if your theme uses Liquid files.
  2. Ensure it renders the same sections as your standard product template so the page looks identical.
  3. In layout/theme.liquid within the <head>, add a conditional for the noindex template:
{% comment %} Outputs noindex on any product using the 'product.noindex' template. Works on Online Store 2.0 (JSON templates) and Liquid templates. {% endcomment %} {% if request.page_type == 'product' and template contains 'product.noindex' %} <meta name="robots" content="noindex,follow"> {% endif %} 
  1. Assign the template to any product: open the product in Admin, find the Theme template setting, and choose product.noindex. Save.

Method 3: App-based controls or metafields

Some SEO apps expose a toggle to apply noindex per product. If your team already uses a trusted SEO app, check whether it supports meta robots per URL and confirm it injects tags at the page level.

About robots.txt

Shopify supports robots.txt.liquid, which manages crawling instructions. It is not a substitute for noindex on individual product pages. Use robots.txt to control crawler behavior at scale, but use meta robots for precise page-level indexing control.

Testing your implementation

  1. Open the product URL in a browser and view source. Verify you see <meta name="robots" content="noindex,follow"> inside the <head>.
  2. Use an HTTP header checker if you also emit an X-Robots-Tag at the server level. Most stores will rely on the meta tag only.
  3. Request indexing in Google Search Console’s URL Inspection tool to speed up re-crawling. Google will drop the page from results after it recrawls and respects the directive.

Common pitfalls

  • Placing the tag in the body instead of the head. Search engines may ignore it.
  • Using noindex,nofollow everywhere accidentally cutting off link equity flow. Prefer noindex,follow for internal SEO health.
  • Forgetting to remove noindex when the product is ready to rank again.
  • Blocking crawling with robots.txt and expecting deindexing. Crawling may be needed for the bot to see the noindex signal.

FAQs

Should I use noindex or delete the product?

Use noindex when you want to preserve the URL, analytics, and buyer access via direct link. Delete only when the page should no longer exist and you can redirect it cleanly.

Will noindex hurt my SEO?

If used selectively, no. It can improve overall site quality by removing low-value URLs from the index. Use noindex,follow so internal links still pass signals.

How long until Google removes the page?

It depends on crawl frequency. After you implement noindex, request a recrawl in Search Console to accelerate removal.

Can I apply noindex to collections or pages?

Yes. Adjust the Liquid conditions to check request.page_type for collection or page, and add your own rules or tags to control when it fires.

What if I run multiple themes or publish a new one?

Reapply the snippet to the new theme’s theme.liquid. Consider documenting your SEO controls so they are part of your go-live checklist.


Copy-paste Liquid snippet

{% comment %} Global meta robots control for products. - Tag any product with 'noindex' to hide it from search results. - Uses 'noindex,follow' to preserve link equity flow. {% endcomment %} {% if request.page_type == 'product' and product and product.tags contains 'noindex' %} <meta name="robots" content="noindex,follow"> {% endif %} 
Pro tip

Create a short internal SOP: “Tag product with noindex when hiding from search, remove the tag when ready to rank.” This keeps your catalog healthy and reduces accidental index bloat.

Change log
  • v1.0 Initial publication with tag-based and template-based methods, plus testing and FAQ.

Table of Contents

Share

Related Blogs

Let’s Build Something Great

Partner with Wedu Media to turn ideas into impactful digital experiences that drive real growth.