Hide pricing from search engine listing while still allowing Google to index the page

We are building a B2B website, and our pricing is already hidden throughout our site.

However, it still appears in our search engine listing. Most other recommendations are to disable crawling for the pages with pricing. This is not an acceptable solution.

How can we hide our pricing from our search engine listings, and still allow our pages to be indexed by Google?

Thank you.

1 Like

Hi,
To achieve this, you’ll have to remove all the pricing data form the product schema and for the price within the product page, only show it for logged in users.

1 Like

The price displayed in search engine listings is set within a script tag found in the product page’s code. For example:


This script tag determines what will be displayed in search engine listings. To remove the price, simply delete the “price” from within the script tag.

Thank you. What if it needs to be done for every SKU? Is there a way to do it across the entire store?

Yes, the JSON scheme is most likely being generated using a template. You’ll need to update that template and it’ll apply for all the products given that it’s the default template for the products.

Thank you! Where do we locate the JSON scheme to edit it?

Would this be within product.json? Can I utilize

{% comment %} {% endcomment %} to comment out any references to price, or do they need to be deleted?

It could be within a section of the product page. If your product page template is a JSON template then you won’t be find it there as it’s simply a template specifying the sections that make up your product page. I’d recommend you seek professional help if you’re familiar with aforementioned processes.

I’m in the same situation - selling only to businesses, some of whom are upset their clients can see our price via Google search results. We’re losing business because of this.
I don’t see json file son our theme, only liquid. So I guess there is a similar sections thing which shows Google what infomation it can use.
I don’t want to tinker and accidentally break our shop.
I’ve tried discussing it with Shopify Help and they say it is something I have to discuss with Google (like that is even possible)

Hello, I have an issue with hiding prices from search engines. I have already removed all price tags from the section, but it still doesn’t work. How can I contact you? I’m willing to pay for your help in solving this issue.

Hi @ZoeM_1

We’d be happy to help you. Please contact us via the link on our footer and we can troubleshoot this for you.

Best,
S

Mine looks different to what you show @PaulMartin_1