Hide pricing from search engine

Hello,

I am attempting to hide price information from search engines such as Google Search and others.

To achieve this, I modified the data structure in the section with the tag and removed all price-related information. However, the price still appears on the search result page. Upon inspecting the developer tools, I noticed that the price data originates from an ID called “web-pixels-manager-setup.” Unfortunately, I am unsure how to locate or address this issue effectively.

I would greatly appreciate any assistance or guidance on this matter. If a Shopify Expert can help, I am willing to pay for your services. Thank you so much in advance!

Hi @ZoeM ,

You can try the following solution:

  1. Remove the liquid code entirely or

  2. Hide the prices visually( you can do so if you’re using the Shopify 2.0 theme by going to the product information section → hide the product price) and in the source code.

Please let me know if this helps your query

Hi there @ZoeM_1 you should have a look at this article here which covers how to hide the prices of your products from search engines such as Google https://www.ilanadavis.com/blogs/articles/how-to-hide-product-prices-from-google

It’s well detailed and extensive so I believe it should sort all your worries in this area.

Hi @ZoeM_1

Google has a really advanced algorithms and their bot can crawl almost everything on your site. Even if you remove structured data or hide the price visually, search engines MAY still crawl the raw HTML source code and extract the price details directly.

However, there are some workarounds and tricks to hide the price.

For your case, you need to check if the “web-pixels-manager-setup” script contains price data:

  • Open your website with developer tools (Ctrl + Shift + C).
  • Search for “web-pixels-manager-setup” in the Elements or Sources tab. For instance: https://prnt.sc/cxyKDvnr1YqH
  • Inspect the script to check how it embeds price data (e.g., JavaScript variables, APIs, or direct page writing).

If the “web-pixels-manager-setup” script is adding the price, you can either:

  • Edit its configuration or disable it entirely (this might depend on your Shopify app setup).
  • In the Shopify Admin Panel, go to Settings > Apps and Sales Channels. Look for third-party apps related to pixels or analytics and adjust their settings to exclude price data.

If it doesn’t work, here are some techniques that can reduces the chance of prices being crawled:

1. Wrap Price Data in a No-Index Block

Google allows you to prevent specific parts of a page from being shown in search results (e.g., the price), while still allowing the page itself to be indexed, you can try this code:

*<div data-nosnippet>*
*<span class="price">$99.99</span>*
*</div>*

The content inside data-nosnippet will not appear in Google’s snippet, but the page will still be indexed

2. Make the price less visible to crawlers by using JavaScript or images.

As Google prioritizes static HTML to crawl, you can load the price dynamically using JavaScript to avoid exposing it to crawlers while still displaying it to users

Or you can display the price as part of an image instead of text, bot may have difficulty reading text from images

3. Wait for Google …

After making changes, it may take time for Google to reflect them. Use Google Search Console to request re-indexing of affected pages.

Let me know if any of these methods are working for you

Best regards,

Daisy.

Hi @ZoeM_1 ,

To hide price information from search engines, it’s important to address both structured data and how the page renders the information. Here’s how you can troubleshoot this issue:

  1. Check for Embedded JavaScript: The price may still be included in the page via JavaScript in the “web-pixels-manager-setup” element. Inspect the source code (not just the “ld+json” script) and look for any embedded JavaScript or third-party apps injecting price data.

  2. Meta Tags & Robots.txt: Ensure your meta tags or robots.txt file isn’t unintentionally allowing search engines to index price details. Add a noindex directive on the product pages if necessary.

  3. Review Third-Party Apps: If you’re using apps for pricing, they might still inject the price data. Check the app settings or try disabling them temporarily to see if the issue resolves.

  4. Manual Code Modification: If you have access to the theme code, locate where the price is rendered in the Liquid files and modify or hide it using display: none; for specific classes or IDs.

  5. Test in Search Console: After making these changes, use Google Search Console to check if the price data is still being indexed. You can request a re-crawl of the pages.

If you’re still stuck, we’re a dedicated team of Shopify experts you may connect with for your specific requirements.

Best of luck!