How can I prevent wholesale prices from showing in Google searches?

BSD11
Visitor
1 0 0

Hi 

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? 

Replies 6 (6)

JoshHighland
Shopify Expert
207 12 73

I'm guessing that the issue is your structured data (JSON-LD). Its commonly included by some themes and some SEO apps - and include your prices.

 

If you are B2B, do you need your products listed in Google? If not, placing a noindex on those products would help keep them out of Google listings

SEO Manager - The FREE all-in-One SEO solution for Shopify
A powerful suite of SEO tools that gets you found in Google results

- Install SEO Manager -

OneMobile
Shopify Partner
149 15 30

Hi @BSD11 

 

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.

 

I hope that this helps!

If you find my answer helpful, please hit the Like button or Mark as solution to show me some encouragement.
OneMobile: The #1 Mobile App Builder For Shopify Merchants
Pick ready-made themes & customize with drag-n-drop editor.

gr_trading
Shopify Partner
1764 142 187

Hi @BSD11 

 

Google index out pages or product by two ways.

 

1. Google merchant

2. Google search console where we submit or Shopify share the data of website.

 

You need to remove that linking and you are done with no indexing.

 

Another way of doing that is put noindex meta tag on products.

 

Please refer to the below video to ocomplish the same.

 

 

Hope this will helps...

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee

RichC
Shopify Partner
9 0 12

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. 

beebee18
Visitor
1 0 0

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!

RichC
Shopify Partner
9 0 12

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 <script> tags and the opening tag should be: <script type="application/ld+json">

 

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:

    <script type="application/ld+json">
      {
        "@context": "http://schema.org/",
        "@type": "Product",
        "name": {{ product.title | json }},
        "url": {{ request.origin | append: product.url | json }},
        {% if seo_media -%}
          "image": [
            {{ seo_media | image_url: width: 1920 | prepend: "https:" | json }}
          ],
        {%- endif %}
        "description": {{ product.description | strip_html | json }},
        {% if product.selected_or_first_available_variant.sku != blank -%}
          "sku": {{ product.selected_or_first_available_variant.sku | json }},
        {%- endif %}
        "brand": {
          "@type": "Brand",
          "name": {{ product.vendor | json }}
        },
        "offers": [
          {%- for variant in product.variants -%}
            {
              "@type" : "Offer",
              {%- if variant.sku != blank -%}
                "sku": {{ variant.sku | json }},
              {%- endif -%}
              {%- if variant.barcode.size == 12 -%}
                "gtin12": {{ variant.barcode }},
              {%- endif -%}
              {%- if variant.barcode.size == 13 -%}
                "gtin13": {{ variant.barcode }},
              {%- endif -%}
              {%- if variant.barcode.size == 14 -%}
                "gtin14": {{ variant.barcode }},
              {%- endif -%}
              "availability" : "http://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}",
              "price" : {{ variant.price | divided_by: 100.00 | json }}, // THIS PROPERTY!!
              "priceCurrency" : {{ cart.currency.iso_code | json }},
              "url" : {{ request.origin | append: variant.url | json }}
            }{% unless forloop.last %},{% endunless %}
          {%- endfor -%}
        ]
      }
    </script>