We’re a B2B business and to view our prices online you have to create an account to log in to see the prices. But! If you seach our company name and product name the wholesale prices show on Google.
This is a big problem as our competitors are able to do this and also the public too.
How can we stop our prices showing on google search?
If you want to prevent your products from showing on Google search, on the specific pages where prices are displayed, you can add a noindex meta tag. Also, ensure your sitemap doesn’t include links to the pages with the wholesale prices.
And don’t forget to edit your robots.txt file by adding rules to disallow search engines from indexing specific URLs where your prices are listed.
If you still want the products to show up in Google results but not show the price, you can remove the price from the JSON-LD on the product pages. Doing so might cause errors in Google Search Console, but will still allow the pages to be indexable.
Hi RichC, would you mind to explain a little bit more about how to remove the price from the JSON-LD on the product pages? e.g. Where to find the JSON-LD and how to remove the price? Many thanks!
Sure — the location of the JSON-LD is going to depend on your theme. In the current Dawn theme, for example, it can be found in the /sections/main-product.liquid. The JSON-LD object will be between tags and the opening tag should be: .
Within the JSON object, there’s an “offers” key. In the value of the offers key should be a price property, which is most likely what’s providing the price to Google. See example that I pasted.
You can try removing the price property, which will definitely create errors in Google Search Console and prevent rich snippets from showing in search results, as I think rich snippets require a price (at least last time I checked). But your products should still show up in search results, just without the price. You try adding zero for the price, which may or may not cause errors in Google Search Console, I’m not sure — Google seems to change the rules on that without warning. You’ll have to experiment with it.
I should also mention, making the update won’t instantaneously remove the prices from Google, as the site will need to be crawled again.
For reference, here’s the JSON-LD from the current Dawn theme:
Has anyone found a solution yet? Why would the structured data be accessible by adding a .js anyways and not be rendered on the server side, to only display what the user is supposed to see? Would also reduce data (marginally bit still).
Also, is the robots.txt no index command a ‘hardwired’ rule, that’s controlled on the server or is that just a rule that we expect search bots follow (are they still able to scrape the data and index, but don’t serve the data in search engines, or is this a hard lockout?).