nosnippet, max-snippet and data-nosnippet: Controlling Google Snippets on a Trades Website

nosnippet, max-snippet and data-nosnippet: Controlling Google Snippets on a Trades Website

A snippet is the text under your title in Google. You cannot write it directly, but you can influence it. This guide explains how Google builds snippets and the three controls it offers.

I am Robiul Alom Ronju, Founder of Nexranking. The figures and rules below come from the pages linked in Sources. My own advice is marked as mine.

nosnippet, max-snippet and data-nosnippet for UK trades websites
Built from Google Search Central’s snippet guidance.

How Google creates snippets

Google builds snippets mainly from the page content, aiming to show the part that best matches the search, so different searches can show different snippets for the same page. It may use the meta description instead when it thinks that gives a more accurate summary.

Meta description guidance

  • Write a unique description for each page.
  • Include useful facts such as price or a service area, clearly labelled.
  • Avoid keyword lists, which tell the user little.
  • Summarise the whole page, not one detail.
  • There is no length limit on the tag itself, but results are cut to fit the device width.

The three controls

  • nosnippet: stops a snippet being shown for the page.
  • max-snippet: sets the maximum length of snippets for the page.
  • data-nosnippet: hides specific parts of a page from snippets.

What Google cannot do

Google says it cannot manually change snippets for individual sites. Snippets are generated for each search, so the text you see can vary. Meta descriptions are used only when Google judges them more accurate than the page text. See meta descriptions for trades pages and how Google writes snippets.

When to use the controls

This is my own advice. Most trades pages need none of them, because a snippet that shows your service and phone number helps you. Use data-nosnippet for text you do not want quoted, such as a price table that changes often. Avoid nosnippet on pages you want to win clicks, because it removes the description under your title.

Check list

  • Do your key pages have a unique, accurate meta description?
  • Does the page text near the top answer the search plainly?
  • Are any controls set by a plugin by mistake?
  • Have you checked with the URL Inspection tool?

Where to set them

Many SEO plugins include fields for robots meta settings. Check the plugin before editing code. If you use the page-level tags, see robots meta and X-Robots-Tag.

Test after a change

After you add or change a control, use the URL Inspection tool to check that the page is still indexable, then wait for Google to recrawl it. Snippets are generated for each search, so you will not see a fixed result at once. This is my own advice. Keep a note of what you changed and when.

A worked example

Illustrative example, not a client case. A heating engineer has a price table on his boiler page that changes every month. He wraps it with data-nosnippet so old prices are not quoted, keeps the rest of the page open to snippets and writes a clear meta description that avoids prices.

Mistakes I see

  • Using nosnippet on every page.
  • Meta descriptions made of keyword lists.
  • Expecting Google to always use your description.
  • Forgetting that plugins can set robots tags.
  • Putting changing prices where they are quoted.

Next, read title links and ask for an audit.

Can I choose my snippet?

Not directly. Google may use your meta description when it judges it more accurate.

What is data-nosnippet?

A control that hides specific parts of a page from snippets.

Is there a length limit?

Not on the tag itself, but results are truncated to fit.

Should I use nosnippet?

Rarely. It removes the description under your title.

Sources