Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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.
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.
The price displayed in search engine listings is set within a script tag found in the product page's code. For example:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "Blue Snowboard",
"url": "https:\/\/martin-dumpstore.myshopify.com\/products\/blue-snowboard",
"image": [
"https:\/\/martin-dumpstore.myshopify.com\/cdn\/shop\/files\/stem.png?v=1721550190\u0026width=1920"
],
"description": "",
"brand": {
"@type": "Brand",
"name": "martin-dumpstore"
},
"offers": [{
"@type" : "Offer","availability" : "http://schema.org/InStock",
"price" : 100.0,
"priceCurrency" : "PHP",
"url" : "https:\/\/martin-dumpstore.myshopify.com\/products\/blue-snowboard?variant=48879522382128"
}
]
}
</script>
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.
Hello, I have an issue with hiding prices from search engines. I have already removed all price tags from the <script type="application/ld+json"> 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_
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
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)
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024