Re: Hide prices from showing up in Google (Debut theme)

Hide prices from showing up in Google (Debut theme)

Anne-Marieke
Excursionist
42 1 4

A question I know has been asked a lot, but I still haven't found a solution.

The webshop I've been working on only shows prices to logged in customers, which works fine. However, if you google the exact title of the product in Google, it shows the prices nonetheless. 

I've made some adjustments already, and with some products it works, but some products still show the price in Google. I've waited for about 2 weeks since my last adjustment, but still no change in Google.

 

Is there someone who could help me out? The website is: www.bickerybbq.com
The site is build with Debut theme.

I know that with some knowledge you can still find the prices when you're on the site and you enter the 'inspect' tool, but that's fine. I just don't want the prices to show up on Google anymore.
Ór, if you have the perfect solution to not be able to find the prices at all when not logged in, that'd be wonderful.

 

Thank you in advance. 

Replies 2 (2)

Roy-ロイ
Shopify Partner
81 18 31

Hi @Anne-Marieke

 

I think I can help you identify the issue.

It seems like you're experiencing a problem with price indexing by Google. Even though you've restricted price visibility to logged-in customers on your website, Google's search engine is still able to crawl and index the prices.

 

Here are a few potential reasons why this might be happening:

  1. Meta tags: Google might be reading the price information from your website's meta tags, such as the og:price:amount or price meta tags. Make sure these tags are not present in your website's HTML or are properly restricted to logged-in users.
  2. Structured data: Google uses structured data (e.g., schema.org) to understand the content of your website. If your website is using schema.org markup to provide price information, Google might be indexing it. Check if your website is using schema.org markup and adjust it to exclude price information for non-logged-in users.
  3. Caching: Google's cache might be showing outdated price information. Try using the Google Search Console to request a re-crawl of your website's pages, which might help update the cached information.
  4. Website architecture: The Debut theme might have some built-in functionality that's causing the price information to be accessible to Google's crawlers. Check your theme's documentation or contact the theme developer to see if there are any specific settings or workarounds for this issue.

To completely hide prices from non-logged-in users, you could consider using JavaScript to dynamically load price information only when a user is logged in. This would make it more difficult for Google (or anyone else) to crawl and index the prices.

 

If you'd like more specific guidance please share a product with me having this issue so that I can look further into this!

Let's connect and grow your Shopify business together! 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - Connect with me at: [email protected] ( CRO | Site Speed Optimization | Custom Development )

Anne-Marieke
Excursionist
42 1 4

Hi Roy,

 

Thank you for your reply. You indeed describe the problem that I have.
As mentioned, I've already made some adjustments in the code. Which works worked for some products, but funny enough, doesn't work for other products. My knowledge of coding is not big enough to understand why. Also, I now see that every product show the price in Google again..

So any adjustment I've made didn't work.

Strangely, I've copied my code from another webshop. Also with the prices visible only to logged in customers. When I Google those products, the prices don't show up in Google. If I can only find the correct piece of coding that makes this work..

For your understanding:
This works as we want: https://www.bickerykerst.nl/collections/time-to-party/products/67671-time-to-party-sparkling-grape-0...
This doesn't work as I want it: https://www.bickerybbq.com/collections/the-bastard/products/11414-the-bastard-rub-ultimate-rib-rub