Resources · AI Search for Ecommerce

How Do I Hide Prices From AI Answers While Keeping My Product Page Indexed?

To hide prices from AI answers while keeping a product page indexed, wrap the price in an HTML element marked data-nosnippet. Google says text marked this way will not be shown in snippets. Bing says the same applies to Bing Search and to Copilot answers, and marked content stays indexed. Also leave the price out of the page's structured data and your shopping feeds. ChatGPT, Claude and Perplexity offer no element-level control. For them, the only reliable way to keep a price out of answers is to leave it out of the page's HTML, for example by showing it only after login to a trade account. Weigh the cost first: assistants may quote an older or reseller price, or skip you for price-based questions.

Why would a business hide prices?

  • Minimum advertised price policies (US), which often allow a lower price in the basket but not on the product page. In the UK and the EU, competition law treats minimum advertised prices as resale price maintenance, so this reason does not apply there.
  • Negotiated or tiered B2B pricing, where list prices mislead most buyers.
  • Prices that change daily, such as commodities, travel or used goods, where a quoted price goes stale within hours.
  • Personalised quotes that depend on specifications.
  • Competitive sensitivity, where a business does not want rivals or aggregators to scrape prices easily.

Each of these is a legitimate reason where the arrangement itself is lawful. The method should match the reason.

How does data-nosnippet work?

Google's robots documentation says the data-nosnippet attribute can be applied to span, div and section elements, and that the marked text will not be shown in snippets. Google's guidance on its AI features says snippet controls such as data-nosnippet also limit what is shown in AI Overviews and AI Mode. Bing added support on 15 October 2025. It said marked content remains indexed and eligible for ranking, but is excluded from Bing Search snippets and Copilot answers.

<p>Brenlow Rota Pro, 12-month licence
  <span data-nosnippet>£480</span>
</p>

Two cautions from Google's documentation:

  • Close the element properly. An unclosed div with the attribute can hide everything after it.
  • Do not add or remove the attribute with JavaScript. Put it in the server-rendered HTML.

What about structured data and feeds?

Markup and feeds are designed to share prices. If the goal is to keep a price out of AI answers:

  • Remove the price from Product markup on that page, or omit the offers data. The product loses eligibility for price-rich results and merchant listings in Google.
  • Leave the product out of Merchant Center, or out of the feed for that product line. Google's shopping results need a feed or Product markup with a price, so the product drops out of them. ChatGPT is different: most of its product cards come from its web crawl, not feeds, so leaving a product out of OpenAI's feed does not stop ChatGPT showing it, or a price it reads in your HTML.

This is a significant trade-off for retailers. For Google, hiding the price in the feed usually means disappearing from shopping results; for ChatGPT, only the page's own HTML decides what price it can read.

How do you keep prices away from ChatGPT, Claude and Perplexity?

Their crawlers read the HTML and do not follow data-nosnippet. Options:

Method How it works Trade-off
Price in basket only Page says "add to basket to see price"; price appears after an action Common for minimum advertised price cases; some buyers dislike it
Price after login B2B customers log in to see their price Suits account-based pricing; prospects see nothing
"Request a quote" No price on the page Assistants may say pricing is unavailable, or guess
Price ranges instead of exact prices "Typically £400–£600" Keeps assistants accurate without exposing exact figures
Price loaded by script after page load Most AI crawlers do not run JavaScript Google renders scripts, so Google still sees it; fragile

Basket-only pricing and ranges are options only for US consumer sales and for business buyers. In the UK and the EU, a product offered for sale to consumers must show its selling price close to the product description on the page, so a retailer there cannot hide it until the basket; use data-nosnippet for Google and Bing, and accept that other assistants will read the price.

Avoid showing crawlers something different from what people see, such as a price for users and no price for bots based on user agent. Google's spam policies treat showing different content to search engines and users, with intent to manipulate, as cloaking.

What does hiding the price cost?

  • Assistants fill the gap. Asked "how much is [product]?", they may quote a reseller's price, an old cached page or a forum post. The answer may be wrong and out of your control.
  • Price-constrained questions exclude you. "Best [product] under £500" needs a price to match.
  • Google's shopping results skip you if your feed lacks prices; ChatGPT can still show the product, and any price in your HTML, from its crawl.
  • Buyers may distrust hidden pricing, especially for consumer goods.

A common middle path is to publish a range or a starting price. "From £450" or "typically £400–£600 depending on configuration" keeps answers accurate and lets you appear for budget questions, without exposing negotiated or exact figures. Whether showing prices helps overall is covered in whether showing website pricing improves AI visibility and conversions.

Should B2B companies hide list prices?

Often they do, but it is worth reconsidering. Business buyers increasingly research on their own before contacting sales, and assistants answering "how much does [product] cost?" will find something. If your list prices do not reflect what most customers pay, publish the structure instead: what the price depends on, typical ranges by company size, and what is included. Keep negotiated prices behind login or in proposals. That keeps answers realistic, prevents a competitor's comparison page from defining your price, and still protects commercial terms.

How do you apply the approach consistently?

Decide the rule per product line and apply it everywhere: product pages, structured data, feeds, marketplace listings, comparison pages and sales collateral. Mixed signals, such as a hidden price on your page but a full price in your feed or on a partner's site, produce inconsistent answers. They can also breach the very agreements that led you to hide prices. Review the setup whenever pricing agreements change.

How do you check what assistants say about your prices?

Ask the main assistants "how much does [product] cost?" and "where can I buy [product] cheapest?". Record the price quoted and its source. If an assistant quotes a reseller or an outdated figure, decide whether publishing your own range would correct it. How to find out whether you own the answer to your own pricing questions is covered in how to check whether your brand owns the AI answer to brand pricing.

What might an illustrative case look like?

Consider an illustrative US retailer of professional audio equipment bound by manufacturers' minimum advertised price policies. Product pages showed prices below the agreed minimum, and suppliers had complained after AI answers quoted them. The retailer moved the discounted price into the basket and showed the advertised price on product pages. It marked a "trade price available" note with data-nosnippet and kept the advertised price in its feeds. AI answers then quoted the advertised price, consistent with the suppliers' policies. The retailer stayed in shopping answers, and buyers saw the lower price at checkout as before.

What do people ask about hiding prices?

Will data-nosnippet hurt the page's ranking?

Google and Bing say marked content stays indexed. Only its display in snippets and AI answers is restricted.

Can I block only AI features, not normal snippets?

Not for individual elements. data-nosnippet applies to both. Search Console's Search generative AI control can be set per property, including a URL-prefix property such as a products folder, to exclude that section from AI Overviews, AI Mode and Discover's generative features while its pages stay indexed with normal snippets.

Is showing prices only in the basket allowed by Google?

Yes, as long as users and crawlers see the same page. Just expect the product to be ineligible for price-based features.

What if a reseller publishes our price?

You cannot control their page. Publishing your own current price or range is the best way to keep answers accurate.

Published by The Kovmere Team · updated Sep 29, 2026 · More resources