Skip to content
FunnelGuard

Fix guide by FunnelsGuard

data-nosnippet hiding key copy from snippets and AI overviews

SEO-036Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

data-nosnippet is an attribute you can add to a span, div or section element. It tells Google that the text inside must not appear in a search result snippet. Google says it also applies to its AI features in Search, such as AI Overviews.

The page can still be indexed and rank. Only the marked text is kept out of the description under your link. That makes the problem easy to miss: rankings look normal, but the snippet is thin or oddly chosen.

Example of the attribute hiding key copyhtml
<section data-nosnippet>
  <h2>Free 30-day trial, no card needed</h2>
  <p>Book a demo and get set up in a day.</p>
</section>

Why it costs you leads or sales

Your snippet is often the first thing a buyer reads. If your offer, price, guarantee or main benefit is hidden, Google fills the gap with weaker text such as menu items, cookie notices or footer lines. Fewer people click.

AI answers work the same way. Text marked with data-nosnippet is less likely to be quoted, so your best claims may not appear when an assistant summarises your page. The business impact is usually low, but it is a cheap fix.

What searchers see

With data-nosnippet on key copy

  • Snippet shows a navigation or footer fragment
  • Offer and guarantee are missing
  • AI answers have less of your wording to quote

Attribute removed

  • Google can choose the most relevant sentence
  • Offer and benefits can appear under your link
  • Page text is available to AI features

How to check if your site has it

Find stray data-nosnippet attributes
  1. View the rendered HTML

    Open the page, press F12, and in the Elements tab press Ctrl+F (Cmd+F on Mac). Search for data-nosnippet. Check the rendered DOM, because scripts can add it after load.

  2. Check what it wraps

    Click each match and see which text sits inside. Note whether it is your headline, offer, price or form intro.

  3. Search the raw source too

    Use View Source and search again. If it appears only in the Elements tab, JavaScript is adding it.

  4. Compare with the live snippet

    Search site:yourdomain.com/page and see which text Google shows. Missing key sentences are a hint, not proof.

  5. Test with Search Console

    In Search Console, run URL Inspection, then View crawled page, and look at the HTML Google stored.

Quick command-line check across a pagebash
curl -s https://www.example.com/landing-page | grep -n -o '.\{60\}data-nosnippet.\{80\}'

How to fix it

Remove the attribute from any element that holds copy you want shown. Keep it only on text such as legal notes, internal labels or content you truly want kept out of snippets. Where you do this depends on how the page is built.

Remove data-nosnippet by platform
  1. Find the source

    Search your theme files and page builder blocks for data-nosnippet. Some SEO plugins add it through a setting or a shortcode, so check your SEO plugin's snippet options too.

  2. Remove it

    In the block editor, select the block, open Advanced and the Additional HTML or Custom HTML area, and delete the attribute. Edit theme templates through a child theme.

How to confirm it's fixed

Confirmation checks
  • View Source and the rendered DOM no longer show data-nosnippet around key copy
  • Search Console URL Inspection shows the updated HTML after you run Test live URL
  • Request indexing for the page so Google recrawls it
  • Check the snippet again after a few days; Google may still pick its own text
  • Test any page templates, not just one page

Google decides what to show, so removing the attribute makes your text eligible rather than guaranteed. Snippet changes can take days or weeks.

How to prevent it happening again

Prevention habits
  • Add data-nosnippet only through a reviewed change, never by default in a theme
  • Search the codebase for the attribute after theme, plugin or builder updates
  • Keep a short note of every place it is used and why
  • Review tag manager Custom HTML tags for scripts that add attributes
  • Spot-check snippets for your top landing pages each quarter

How FunnelGuard handles this

FunnelGuard does not check for data-nosnippet yet. It is a possible future check, so today you need to watch for it yourself.

What FunnelGuard does cover nearby is the journey itself. A robot visitor runs your real lead forms, checkouts and booking steps on a schedule, checks the tracking hits, and confirms test leads arrive. That tells you whether visitors who do arrive can convert, not how your snippet looks in search.

To watch for this issue, search your code for data-nosnippet after every release, and use Search Console's URL Inspection to review the HTML Google stored. A free read-only website audit from FunnelGuard is also available if you want a general look at your site.

Questions people ask

What does data-nosnippet do?

It is an HTML attribute that tells Google not to show the text inside that element in search snippets. Google says it also covers its AI features in Search, so the text may be left out of AI Overviews. The page can still be indexed and rank.

Why is my key text missing from my Google snippet?

Google may be choosing other text because it picks the most relevant passage for each query. But a data-nosnippet attribute, a nosnippet or max-snippet directive, or a theme or plugin could also be hiding it. Search your page source for data-nosnippet first.

How do I remove data-nosnippet from my website?

Find the attribute in your theme, page builder, embeds or tag manager scripts, and delete it from the elements holding key copy. Then publish, recheck the page source and request indexing in Search Console. Keep it only on text you want hidden.

Does data-nosnippet affect rankings?

Google describes it as affecting what appears in snippets, not whether the page is indexed. Rankings should not change because of it. The main cost is a weaker snippet and less of your wording available to AI features.

Is data-nosnippet the same as the nosnippet meta tag?

No. The nosnippet robots directive applies to the whole page, while data-nosnippet applies only to the element it is placed on. Both can limit snippets, so check for each.

Can JavaScript add data-nosnippet after the page loads?

Yes. A script can set the attribute on an element after load, so it may be missing from View Source but present in the rendered DOM. Check the Elements tab in dev tools and the crawled HTML in Search Console URL Inspection.

Does FunnelGuard detect data-nosnippet?

No, not yet. It is a possible future check. FunnelGuard currently monitors journeys, tracking and lead delivery, so check this issue manually or with a crawler that searches page HTML.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.