Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
On our online store, we have a vendor that prohibits us from advertising prices for their products on Google.
We have tried to hide the prices on the store and product pages for users that are not logged-in, and that works, but the prices still show up in google. This is confirmed by entering the product page url into https://search.google.com/test/rich-results , where we can see the price listed.
Since the rendered page does not display the price info when not logged-in, the only clue I have to where the price value is coming from is when I 'view source' on the product page, I can see there is a script tag:
<script id="web-pixels-manager-setup">
whose content contains information on the product, including price.:
<script id="web-pixels-manager-setup"> (...) "productVariants":[{"price":{"amount":270.0,"currencyCode":"CAD"} </script> <script>window['GoogleAnalyticsObject'] = 'ga';
Is there anything I can do, in admin or site code, to prevent the price from reaching google results?
p.s. I only want/need to block some of the products from showing up with prices, ideally. I have given those products a specific tag, so the ideal solution would only be applied to products with the specific tag.
Thanks
Hi @essentialair 👋
It's an advanced customization that varies wildly among theme if you need to not render specific parts of schema JSON-LD, or other parts of a theme.
If you recently made changes keep in mind it may take awhile for search-results to update until the next re-indexing.
If by "google results" you actually mean google-shopping that requires removing the product from that services feeds.
If you don't want these products to be indexed at all use the SEO metafield
If you need this customization then contact me by my email for services, or if you have access private message by clicking here (sloooower).
Contact info in forum signature.
ALWAYS please provide context, examples: store url, theme name, post url(s) , or any further detail in ALL correspondence.
Good Hunting.
Contact paull.newton+shopifyforum@gmail.com for the solutions you need
Save time & money ,Ask Questions The Smart Way
Problem Solved? ✔Accept and Like solutions to help future merchants
Answers powered by coffee Thank Paul with a ☕ Coffee for more answers or donate to eff.org
Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025Expand into selling wholesale with Shopify Academy’s learning path, B2B on Shopify: Lau...
By Shopify Jan 28, 2025