Need to no crawl all our products but not our site

Topic summary

A two-person funeral supply business in New Zealand needs to prevent Google from displaying product pricing in search results while keeping their main site visible. They sell exclusively to verified funeral businesses through a login-required app, but Google is currently showing pricing in image search results.

Proposed Solution:
Multiple respondents confirmed adding a noindex meta tag specifically for product pages in the theme.liquid file. Two code snippets were provided:

  • {% if template contains 'product' %} with <meta name="robots" content="noindex, nofollow">
  • {% if request.page_type == 'product' %} with the same meta tag

Both approaches would prevent search engines from indexing product pages (and their pricing) while allowing the rest of the site to remain crawlable.

Status: The original poster acknowledged the solutions and appears ready to implement. One respondent requested the store URL for more detailed assistance, but the thread seems resolved with the provided code examples.

Summarized with AI on October 24. AI used: claude-sonnet-4-5-20250929.

Hi folks,
Support said you are experts at code and to check this with you:

We are a two person business.
We sell directly to funeral businesses in NZ who are very protective of their industry.

We have an app that requires customers to be logged in before they can see product pricing (and another that lets us verify the customer application) BUT Google insists on displaying our pricing in their image search results.

One option is apparently to use a nocrawl thingy in the theme.liquid file.

This is what has been suggested:
{% if template contains ‘product’ %} {% endif %}

Will this allow google to still see our site, but NOT crawl our product pages, therefore not show results of products, and therefore their pricing?

Thank you!
Jenny
urncraft

Hi @JennyvdM ,
You’re on the right track. The {% if template contains 'product' %} bit by itself won’t stop Google from crawling your product pages. To prevent search engines from indexing product pages (so they won’t show product/pricing in results), you’ll want to add a <meta name="robots"> tag in your theme.

For example, inside your <head> in theme.liquid, you could use:

{% if template contains 'product' %}
  <meta name="robots" content="noindex, nofollow">
{% endif %}

Hi @JennyvdM,

You only want Google to find the home page and not find or crawl the product pages?

If so, you can add the following code at theme.liquid file:

{% if request.page_type == 'product' %}
<meta name="robots" content="noindex, nofollow"/>
{% endif %}

Oooo I forgot you need to put code inside something for it to show up!

Thank you both!

The bit that doesn’t show has angle brackets at beginning and end and says:
meta name=“robots” content=“noindex”

Hi @JennyvdM,

Yes, you just need to add noindex to it, it will help you hide product pages from Google.

If I helped you, then a Like would be truly appreciated. :blush:

Hi @JennyvdM

I’m willing to help you here, but lack of more details from what you said in the question, such as store link. You can share store URL and I will take a look carefully.