Retail Store: Hide product price for google search result.

emtiaz51921
Tourist
6 0 1

I have a retail store called https://regulatoraustralia.com.au. I have locked all the prices for user with this condition

{% if customer %} 
 {% endif %}

Means user can only see the price when they are logged in. I have not used any other plugin for SEO. All are default shopify things. 

 

The problem I am facing now is, when someone search by product name or category, my product price are shown to google search result. Is there any way I can make it so the price section is always hidden from google search result?

Replies 14 (14)

Jason
Shopify Expert
11190 225 2282

I picked a random product on your shop and viewed the source using the browsers debug tools. 

https://support.google.com/surveys/answer/6172725?hl=en

 

I searched for "price" and found the price in the code so you're not masking it everywhere. Also keep in mind that the price can always be seen by looking at the ajax endpoints (add .js to the product url). Keep that in mind depending on how private your prices need to be.

 

As for what Google shows now, it is showing prices in results now? I'd assume that it still has the index values from before you added the code. That sound about right?

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
cna_az
Shopify Expert
14 0 9

We just went through this for a client that only sells wholesale. There is a way to hide products from Google using a custom metafield (feature recently released by Shopify) but found that this also hid products from our client's search field on her website.
We ended up adding a tag to the product page to hide all products from Search Engines and keep them available on internal searches.
We have requested that Shopify add the ability to hide prices only from Search Engines as a custom metafield. Please call support and request this feature so Shopify is aware that this will benefit several stores not just one.

josefinashopify
Shopify Staff
1 0 0

Hey @cna_az , so if I want to hide the price on my store AND have google display my products without the price, this won't be possible ?

To learn more visit the Shopify Help Center or the Community Blog.

cna_az
Shopify Expert
14 0 9

Hi @josefinashopify ,
I have not tried to hide prices but still show products on Google search results. Who are you trying to hide prices from in your store?

bryan76
Trailblazer
179 3 39

the only topic of this thread is hiding the price on Google.  any other response is ignoring the initial question 

MuzammilMalik
Shopify Partner
203 0 10

Hi dear, Yes you can Hide product price for a google search result, Shopify hide price app offer that enables you to display product prices and add to cart function for specific customer tags and products. The owner can replace price with multiple options like add to cart, contact us, call for a price, etc. if the user needs a product price he/she can contact auto-response generate to reply to their enquiry.99b567d7538ae0925e3c78480380c000

 

 

 

Shopify Marketing & Search Engine Marketing Specialist

Uniqwa_C
Excursionist
12 0 7

Hi there

Did you ever find a solution to this? We are facing the same challenge and have the same set up (customers can only see the price when they are logged in). Thanks 

Seb-Jacques
Tourist
3 0 0

Hi all,

Still facing the same issue as the merchants above. Is there a solution other than using an app?


Thanks,

SJ

bilal003
Shopify Partner
4 0 2

Hi There! 
If you want to hide the price of a Shopify product from being shown in Google Search results, you have to modify the structured data (JSON-LD) of your site. This data is what Google and other search engines use to display details about your products in their results.
you can simply search this script tag in your code 

 

<script type="application/ld+json">

 

and remove everything related to price 

 

"price" : {{ product.price | divided_by: 100.0 }},

 



Bilal | Shopify Theme Developer
Did I solve your issue? Like & Mark As Solution to help the community
Emial: bilalarshad.me38@gmail.com

bilal003
Shopify Partner
4 0 2

Hi There! 
If you want to hide the price of a Shopify product from being shown in Google Search results, you have to modify the structured data (JSON-LD) of your site. This data is what Google and other search engines use to display details about your products in their results.
you can simply search this script tag in your code 

<script type="application/ld+json">

and remove everything related to price 

"price" : {{ product.price | divided_by: 100.0 }},



Bilal | Shopify Theme Developer
Did I solve your issue? Like & Mark As Solution to help the community
Emial: bilalarshad.me38@gmail.com
bryan76
Trailblazer
179 3 39

Thanks Bilal.   That make sense.  Will that effect the price the customer sees when they are logged in or the ability to make a purchase?  I have now set my code to have some products that show prices all the time, others only when logged in and some products custom quote.   I simply tagged the products that I want to hide with two different tags and wrote a log yet simple  if customer  script.   Can the JSON read Tags?

Sjalalen
Excursionist
18 0 6

Can you or someone please specific how that is done, I do not even find the mentioned code anywhere in my coding, if this JSON file is the google playground, then it must be possible to add some span class hidden, instead of removing, or will that not work on a search engine, if you are a pro, coding guy/girl you must be able to help out with this issue,,, please

 

Uniqwa_C
Excursionist
12 0 7

This solution is no longer effective. It stopped pricing from appearing on Google for a few months, but now they are back on! Are there any updated ideas on how to effectively remove prices from being crawled and appearing in Google search results? Thank you 

Sjalalen
Excursionist
18 0 6

I have the same problem, anyone have a solution, ?

I hide my price using 

{% if customer %} 

 all works fine on my Shopify site, but on Google search engine, prices are still visible.

This must be a problem to all B2B shops, there must be a solution, please help