Retail Store: Hide product price for google search result.

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 18 (18)

Jason
Shopify Partner
11207 226 2319

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 Partner
14 0 12

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 Partner
14 0 12

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
Navigator
413 8 88

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
21 0 15

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
vinnic
Tourist
3 0 1

HI, This sounds like a good solution as I am a wholesaler and require people to login in to see pricing. I am unable to see where to access these codes. Could you give me a point in the right direction. 

Thanks Nicole

bryan76
Navigator
413 8 88

if you just want to hide the proce on your site from being seen if not logged in you just need to wrap that part of the product page with the If Customer code with the Else being black.   it can get more complicated if you want but it is pretty simple to hide as  'if customer' means logged in.

 

if you want to hide the price from Google Search you have a whole other problem to deal with 

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
Navigator
413 8 88

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
21 0 10

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
21 0 15

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
21 0 10

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

bryan76
Navigator
413 8 88

although you are hiding the price on the product page from being visible, the product information is in the Structured Data of the page.  so Google, or anyone with the knowhow, can view the information.  if you try to hide the structured data from Google you will see a bunch of errors in Google Search Console.

 

one option would be to create a page with the product info that is visible to customers who are not logged in, and then have a separate product page for those who are logged in (and make sure that page is not indexed on the search engine with robots tag.). that would be extreme if you have lots of products. 

 

the reality is Shopify is not the platform for this.  you really want to be on a wholesale platform like Shopify Plus, etc.  we are piecing together a sudo wholesale experience with what we have to work with

Vahidf12
Shopify Partner
5 0 0

Hi, I have the same issue, but i couldn't use your solutions. Could you please help me, https://lightsandparts.com/ Thanks