Control What Google and Bing AI Show From Your Pages
Don't want AI answers to show your paid content, old prices or customer comments, but still want to rank? This prompt picks the right control for each part of your pages (nosnippet, max-snippet or data-nosnippet), writes the code and shows you the trade-offs before you lose traffic by mistake.
Example input
This is exactly what we gave the model. You replace it with your own details.
- Website: https://www.example.com (online wine shop with a members club) - Business model: Ecommerce with a paid members club that gets lower prices - What I want to keep out of snippets and AI answers: Member prices, customer reviews that mention old vintages, and a legal note about alcohol delivery rules - What I still want shown: Wine names, tasting notes, normal prices, and our buying guides - Example URLs and page sections: /wines/rioja-reserva-2019/: price box shows normal price £18 and member price £14.40 next to each other; reviews section at the bottom; delivery rules note in the footer. /guides/best-wines-under-20/: whole page should be shown. - Platform: Shopify
Real output
Pasted straight from the model. We did not fix a word.
Snippet and AI answer controls for example.com
Short version: You can do all three jobs with the lightest control, data-nosnippet, placed on three small sections. You do not need page-level rules (nosnippet, max-snippet, noindex) on your wine pages or your guides. There is one extra job: keep the member price out of your structured data and your Google Merchant Center feed, because data-nosnippet does not affect either of them.
Missing details: my guesses (correct me if any are wrong)
- Are your real URLs
/wines/...and/guides/...? Standard Shopify uses/products/...and/blogs/.../.... My guess: you use a normal Online Store 2.0 theme (like Dawn), and the real paths are/products/rioja-reserva-2019and/blogs/guides/best-wines-under-20. If your store is headless (Hydrogen), tell me, because that changes the header options. - Should non-members still see the member price on the page? My guess: yes. "Members pay £14.40" is your hook for selling the club, so I use
data-nosnippethere, not a login. - How is the member price added? My guess: an app or some theme code shows 20% off (£18 → £14.40). It is not a separate "Member" variant, and it is not in your product JSON-LD or your Merchant Center feed.
- How do your reviews load? My guess: through a reviews app widget (Judge.me or similar) that loads with JavaScript, so you can't easily edit the HTML of each review.
- Do you have SEO apps installed? My guess: yes, at least one SEO app plus the Google & YouTube app. Both can add tags or data, so I've included checks for them.
Decision table
| Content | Control | Where it goes | Effect on Google | Effect on Bing | Traffic risk |
|---|---|---|---|---|---|
| Member price (£14.40) | data-nosnippet on a <span> around the member price only. Also keep it out of JSON-LD and the Merchant Center feed. | The price snippet in your product template. This also covers product cards on collection pages if they use the same snippet. | Not shown in text snippets. It should also be kept out of AI Overviews and AI Mode, but confirm this (see the note below). The rich result price stays £18 because it comes from JSON-LD. The page stays indexed. | Left out of snippets and Copilot answers. The page stays indexed and the text still counts for ranking. | Very low |
| Reviews that mention old vintages | Step 1: data-nosnippet on those reviews only. Step 2 (fallback, if your app can't do Step 1): data-nosnippet on the whole reviews section. | The reviews block at the bottom of the product page | Those reviews are not used in snippets or as AI input (same note as above). Star ratings come from structured data, so they stay. | Left out of snippets and Copilot. The text still counts for ranking. | Step 1: very low. Step 2: low, because no review text at all can be quoted. |
| Alcohol delivery rules note | data-nosnippet on a <div> around the note | The footer. One edit covers every page. | Not used in snippets or as AI input. Shoppers still see it. | Left out of snippets and Copilot | Very low. This note rarely earns clicks. |
| Wine names, tasting notes, normal price £18 | No control. Add a strong meta description (name + tasting note + £18) and keep £18 in JSON-LD. | The "Search engine listing" field on each Shopify product, plus your theme's JSON-LD | Fully usable in snippets, AI Overviews and AI Mode. A good meta description gives Google a good snippet to use, so the hidden parts aren't missed. | Fully usable in snippets and Copilot | None. This should help click-through. |
Buying guides (/guides/best-wines-under-20/) | No control. Check that the page has no robots meta tag and no data-nosnippet wrapper. | The blog article template | Fully shown | Fully shown | None |
Why I didn't pick a heavier control (one line each):
max-snippet:[number]on wine pages: it shortens all the text, including tasting notes, and it can't target the member price. You lose more and gain no precision.nosnippeton wine pages: it hides the member price, but it also removes every text snippet for your most important pages, in normal results and as AI input. Expect a big drop in click-through.noindex: the wine page disappears from search. Far too strong.- Login (member price shown only to logged-in members): the only real privacy option. Use it only if nobody else should be able to read the member price, because non-members lose the "join to save" hook.
- Blocking in
robots.txt, or usingGoogle-Extended: a robots.txt block stops Google from reading your tags at all. Google-Extended only controls use in Gemini models, not Google Search or AI Overviews. Neither one fits this goal.
Expected effect by surface (after the next crawl):
| Surface | Before | After |
|---|---|---|
| Google normal snippets | Can show "Member price £14.40", an old-vintage review or the delivery note | Built from the wine name, tasting notes, £18 and your meta description |
| Google AI Overviews / AI Mode | Can quote any of the three | Marked sections should not be used (confirm in Google's doc) |
| Bing snippets and Copilot | Can quote any of the three | Marked sections are left out |
| Rankings | No change | Bing: no change expected, because the text still counts. Google: the page stays indexed. I expect little or no change, but this is a guess. |
| Google Shopping / merchant listings | Uses your feed and JSON-LD | Not affected by data-nosnippet. Check that the feed has £18 only. |
Search engines can change these rules. Google's AI features and Bing Copilot are new, and both companies have changed their controls more than once in the last two years. As I understand it, Google's "AI features and your website" page lists
data-nosnippetalongside its other preview controls. Read the current version before you rely on it for AI Overviews and AI Mode. Check Google's and Bing's docs again every 3 months, and re-run the tests below whenever either one announces a change.
Code blocks
Before you edit anything, go to Online Store → Themes → … → Duplicate. Make your changes on the copy, preview it, then publish.
1. Price box: hide only the member price
This is what the final HTML should look like:
<div class="price-box">
<span class="price-regular">£18.00</span>
<span class="price-member" data-nosnippet>Member price: £14.40</span>
</div>
In Shopify (Liquid): most Online Store 2.0 themes keep the price in snippets/price.liquid. This is a pattern, not a full replacement. Add the attribute to whichever element holds the member price.
{%- comment -%}
Guess: member price = 20% off the normal price.
If an app already prints the member price, don't add this.
Wrap the app's output instead (see notes below).
{%- endcomment -%}
{%- assign v = product.selected_or_first_available_variant -%}
{%- assign member_price = v.price | times: 80 | divided_by: 100 -%}
<div class="price-box">
<span class="price-regular">{{ v.price | money }}</span>
<span class="price-member" data-nosnippet>
Member price: {{ member_price | money }}
</span>
</div>
Notes:
- Keep the normal price outside the
data-nosnippetelement. - When a shopper picks a different variant, your theme may refresh the price with JavaScript. Make sure the new HTML still has the attribute. Dawn-style themes fetch fresh HTML from Shopify, so the attribute stays as long as it's in the Liquid.
- If an app adds the member price with JavaScript, put
data-nosnippeton a container you control. If you can't, ask the app's support to adddata-nosnippetto their member price element. It's a one-line change for them.
2. Product structured data: normal price only
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Product",
"name": "Rioja Reserva 2019",
"description": "Ripe cherry, vanilla and soft spice from oak ageing.",
"offers": {
"@type": "Offer",
"price": "18.00",
"priceCurrency": "GBP",
"availability": "https://schema.org/InStock",
"url": "https://www.example.com/wines/rioja-reserva-2019/"
}
}
</script>
- Dawn-style themes output this with
{{ product | structured_data }}insections/main-product.liquid. It lists one offer for each variant, so if your member price is a separate variant, it will show up here. Fix that first. - Don't add Google's member/loyalty price markup (
validForMemberTier), and don't set up a loyalty program in Merchant Center, unless you want member prices shown in Google. - Review apps often add
Review/AggregateRatingmarkup. Star ratings are fine. If your app also puts the full review text in JSON-LD, check that old-vintage reviews aren't included.
Meta description for the wine page (Products → Rioja Reserva 2019 → Search engine listing → Edit):
Rioja Reserva 2019: ripe cherry, vanilla and soft spice from oak ageing. £18 a bottle at Example Wine.
3. Reviews: Step 1 first, Step 2 as fallback
If your reviews are plain HTML that you can edit, Step 1 is simple:
<section id="product-reviews">
<div class="review">Smooth, ripe cherry. Perfect with lamb.</div>
<div class="review" data-nosnippet>Not as good as the 2015 vintage.</div>
</section>
If a reviews app shows them (my guess), put the app block inside a small section of your own. That gives you both steps with one checkbox. Create sections/product-reviews-wrap.liquid:
<section id="product-reviews"{% if section.settings.hide_all %} data-nosnippet{% endif %}>
{%- for block in section.blocks -%}
{% render block %}
{%- endfor -%}
</section>
{%- unless section.settings.hide_all -%}
<script>
/* Step 1: tag only reviews that mention a year other than this wine's vintage.
Change .review-item to your app's review class. */
(function () {
var vintage = '{{ product.title | slice: -4, 4 }}'; // guess: title ends with the year
var yearRe = /\b(19[5-9]\d|20\d\d)\b/g;
var box = document.getElementById('product-reviews');
if (!box) return;
function tag() {
box.querySelectorAll('.review-item').forEach(function (el) {
var years = el.textContent.match(yearRe) || [];
if (years.some(function (y) { return y !== vintage; })) {
el.setAttribute('data-nosnippet', '');
}
});
}
tag();
new MutationObserver(tag).observe(box, { childList: true, subtree: true });
})();
</script>
{%- endunless -%}
{% schema %}
{
"name": "Reviews wrapper",
"settings": [
{
"type": "checkbox",
"id": "hide_all",
"label": "Hide ALL reviews from snippets (Step 2)",
"default": false
}
],
"blocks": [{ "type": "@app" }],
"presets": [{ "name": "Reviews wrapper" }]
}
{% endschema %}
How to add it: go to Customize → Products → Default product, add the "Reviews wrapper" section below the product info, add your reviews app block inside it, and remove the old reviews block.
Notes:
- The Step 1 script only works if the search engine runs JavaScript. Google usually does. Bing does so less reliably, but if Bing doesn't run JavaScript, it never sees the app's reviews anyway. Test this (see the test plan). If Google's rendered HTML doesn't show the attribute, tick the checkbox to switch to Step 2.
- The script only catches reviews that mention a year. A review like "the last vintage was better" will slip through. You can add words to the check, or move those reviews to the right vintage's page in your app, which also helps shoppers.
- Google supports
data-nosnippetondiv,spanandsectiononly. If your app's review items are<li>or<article>, Google may ignore the tag, so use Step 2 instead.
4. Footer delivery note
<div class="footer-legal-note" data-nosnippet>
<p>[Your alcohol delivery rules text]</p>
</div>
How to do it on Shopify: go to Customize → Footer → Add section → Custom Liquid, paste the code above with your text, then remove the old text block that held the note. Or, in code, find the note in sections/footer.liquid and wrap just that part in the <div>. Don't put the attribute on the <footer> tag itself, because Google doesn't support it on that element.
5. Page-level tags: not needed now, shown here for reference
Make sure your wine pages and guides do not have any of these. Check layout/theme.liquid and your SEO app settings:
<!-- Should NOT be on wine pages or guides -->
<meta name="robots" content="nosnippet">
<meta name="robots" content="max-snippet:50">
<meta name="robots" content="noindex">
If you ever need a page-level rule on one page (for example, a members-only price list page, if you have one, which is a guess):
{%- comment -%} layout/theme.liquid, inside <head> {%- endcomment -%}
{%- if request.page_type == 'page' and page.handle == 'member-price-list' -%}
<meta name="robots" content="noindex">
{%- endif -%}
Shopify also has a built-in option: set the metafield seo.hidden to 1 on a page or product. Shopify then adds noindex and removes the page from your sitemap.
Rules for one search engine only:
<meta name="googlebot" content="nosnippet">
<meta name="bingbot" content="nosnippet">
X-Robots-Tag headers:
X-Robots-Tag: noindex
X-Robots-Tag: googlebot: nosnippet
Standard Shopify themes don't let you set your own HTTP headers, so use meta tags instead. Headers are only an option if you go headless or host files (like PDFs) on your own server. In Hydrogen, for example:
// Hydrogen route file (only if your store is headless)
export const headers = () => ({ 'X-Robots-Tag': 'noindex' });
Mistakes to avoid
- Wrapping the whole page or the main product section in
data-nosnippet. Your tasting notes and the £18 price drop out of snippets and AI answers, and Google may show a weak snippet or none at all. Wrap only the three small parts. - Putting the attribute on the whole price box. This hides £18 as well. Split the two prices into separate elements first.
- Using
nosnippeton wine pages "to be safe". It removes your snippets from normal results too. On product pages that can cut click-through badly. - Using the wrong element. Google supports
data-nosnippetondiv,spanandsection. Bing supports any element. Stick to those three so it works on both. Close your tags properly, because broken HTML can make the hidden area leak or spread. - Conflicting tags from apps. SEO apps, translation or Markets apps, and review apps can add their own
<meta name="robots">tags or a second Product JSON-LD. Check the rendered HTML: you should have one robots tag at most and one Product JSON-LD. When robots rules conflict, Google follows the most restrictive one. App updates can bring these tags back, so check again after updates. - Missing other places that show the member price: collection product cards, quick view, compare widgets, blog posts, and your members club page. A line like "save 20%" there lets an AI work out £14.40. Decide whether that's okay.
data-nosnippetonly covers the elements you mark. - Forgetting structured data and feeds.
data-nosnippethas no effect on JSON-LD, Merchant Center, Google Shopping or shopping results in AI Mode. - Treating this as privacy. The member price is still in your page source. Competitors, scrapers, and AI crawlers that ignore the attribute can still read it. Real privacy needs a login.
- Blocking pages in
robots.txt, or relying on Google-Extended, to hide this content. Neither one does what you want here. - Hiding the legal note from shoppers with
display:none. The note must stay visible to people.data-nosnippetdoesn't hide anything on the page. - Expecting instant results. Google has to recrawl the page first, and Bing can take anywhere from seconds to a week. AI answers may repeat old information for a while.
- A footer wrapper leaking into guides. If a
<div data-nosnippet>in the footer area isn't closed properly, it can end up wrapping page content. Check a guide page after launch.
Test and monitoring plan
Before launch (day 0)
- Baseline: in Google Search Console, go to Performance, filter pages containing
/products/(or/wines/) and/guides/(or/blogs/), and export clicks, impressions, CTR and average position for the last 28 days and the same 28 days last year. Do the same in the Search Performance report in Bing Webmaster Tools. - Control group: your guide pages, which you won't change. This matters because if you launch now, your 4 weeks cover the Christmas peak, and wine traffic will jump for seasonal reasons. Compare your wine pages against the guides, not just against last month.
- Screenshots of the current Google and Bing results and AI answers for these tests:
- Searches:
example.com rioja reserva 2019,example.com rioja reserva 2019 price,example.com member price,example.com alcohol delivery rules,best wines under £20 example.com - AI prompts: "How much is Rioja Reserva 2019 at example.com? Is there a member price?", "What do customers say about Rioja Reserva 2019 at example.com?", "What are example.com's alcohol delivery rules?", "Which wines under £20 does example.com recommend?"
- Searches:
Google tests
- Page source (in the theme preview, press Ctrl+U and search for
data-nosnippet): it should appear only on the member price, the old-vintage reviews (or the reviews section) and the footer note. It should not appear on £18, the tasting notes or any guide content. - URL Inspection → Test live URL → View tested page → HTML: confirm the attribute is in the rendered HTML. This is the key test for the review script. Also confirm there's no
nosnippetornoindextag and only one robots meta tag. - Rich Results Test: the Product price should be 18.00 GBP, with no member price.
- Request indexing for the Rioja page, one guide and your top 5–10 wine pages.
- Live searches after the "Last crawl" date in URL Inspection updates. Use a private window, logged out. The snippets should not show £14.40, old-vintage review text or the delivery note.
- AI Overviews and AI Mode: run each prompt 3 times, because answers change from run to run. Note whether the answer mentions the hidden content, and which source it links. If the member price comes from another website, your page controls can't stop that.
- Merchant Center: check that there are no price mismatch warnings and that the price shown is £18.
Bing tests
- Bing Webmaster Tools → URL Inspection: confirm the attribute is in the HTML Bing sees.
- Submit the same URLs with the URL Submission tool.
- Wait up to a week, then run the same Bing searches and the same Copilot prompts (in Bing and in the Copilot app), 3 times each.
4-week monitoring plan
| Week | What to do | What to look for |
|---|---|---|
| 1 | Launch. Run the inspection tests. Request indexing in Google and submit URLs in Bing. | The attribute appears in the rendered HTML. No new errors in the Search Console "Product snippets" or "Merchant listings" reports. |
| 2 | First snippet and AI checks. Compare clicks, impressions and CTR for wine pages against the guides in both Google and Bing. | Snippets show tasting notes and £18. CTR holds steady compared with the guides. |
| 3 | Repeat the AI Overviews, AI Mode and Copilot checks. Re-check apps for new tags. | All three hidden parts are gone from Google and Bing answers. |
| 4 | Compare 28 days before and after, against the guides and against last year. | Decide whether to keep or adjust (rules below). |
Decision rules (the thresholds are my guesses, so adjust them to your data):
- Wine-page CTR falls more than about 15% compared with the guides, while position stays steady: look at the snippet Google shows now and improve your meta descriptions. If you used Step 2 for reviews, try Step 1.
- Position drops by more than 2 places across many wine pages: first look for an accidental
noindexornosnippettag, or a wrapper covering the whole page. - The member price still shows 2 weeks after Google's last crawl: check the JSON-LD, the feed and your other pages. If it still shows after that, consider showing the member price to logged-in members only.
- Guide impressions drop: check for a leaked wrapper or a robots tag on the guide template.
After the 4 weeks, re-test after every theme or app update, and check Google's and Bing's docs every 3 months, because both companies change how these controls work.
The prompt
First lines open so you can see how it is built. The rest opens after purchase.
#ROLE You are a technical SEO expert in search snippet and AI answer controls. Help me control which parts of my pages Google and Bing can show or use in snippets and AI answers, without hurting my rankings more than needed. #INPUTS Fill in every line. Leave a line blank if you don't know it. - Website: [WEBSITE URL] - Business model: [e.g., subscription publisher, store, SaaS, affiliate] - What I want to keep out of snippets and AI answers: [e.g., paywalled text, member prices, user comments, old promotions, legal disclaimers, whole pages]
How to use it
- Buy, then open it in your account.
- Copy the prompt into ChatGPT, Claude or Gemini.
- Replace the 6 inputs with your product.
- Run it. Use the output. Re-run with a different tone if you like.
Pro tips
- Start with section-level controls (data-nosnippet). Page-level rules like nosnippet also kill your normal search snippets.
- Check Bing Webmaster Tools after a week. Bing confirms data-nosnippet with its URL inspection tool.
- Watch clicks for 4 weeks after the change. If CTR drops, loosen the rule.
Before you buy
- Will it work for my product?
- Yes, if you can fill the 6 inputs. If the output is bad with your inputs, email us: we fix the prompt and refund you.
- Do I download a file?
- No. It lives in your account with a copy button, and updates when we improve it.
- Which model is best?
- Best on Claude. Works in ChatGPT, Claude and Gemini.
Works well with this
Prompts people use in the same campaign.
More in AI Search & Bots
Buying more than two? Lifetime is cheaper.
Every prompt, every category, forever. $59 once. Nothing to download, nothing to renew.
This prompt
$3$7
- ✓ Instant access in your account, with a copy button
- ✓ Example input and real output included
- ✓ 7-day money-back, no form
Or get every prompt, forever
Lifetime Access · $59 $149 — all categories, all future prompts, rewrites included.
Get lifetime accessCard or PayPal · taxes at checkout · nothing to download
Not the one you need?
Browse every prompt by category and sub-category.