On Page SEO
How To: Stop Google Rewriting Your Meta Description
TL;DR:
Google can rewrite your meta description when it thinks content elsewhere on the page provides a better snippet for a particular search. You can’t force Google to use your chosen description, but the data-nosnippet attribute lets you prevent specific page content from being used instead. I’ve used this approach to get Google displaying my intended meta descriptions much more consistently.
Why does Google keep changing my meta description?
Picture the scene:
You’ve spent time researching and writing what you think is the perfect meta description for an important landing page. It accurately describes the page, includes the important selling points and should encourage more people to click your result.
And then Google doesn’t display it.
Instead, it creates a search snippet using some seemingly random text from elsewhere on your page.
Annoying, isn’t it?
One of the questions I’m regularly asked as a website optimisation consultant is “why does Google keep rewriting my meta description?”
The short answer is that Google can create search snippets from your page content when it thinks that content better matches a particular search query. You can’t guarantee that Google will always display your chosen meta description, but you can use the data-nosnippet attribute to prevent specific sections of your page from being used to generate the snippet.
I’ll explain why Google rewrites meta descriptions first, then show you how I’ve used data-nosnippet to give Google less alternative content to choose from.
What is a meta description?
A meta description is an HTML element that provides a short description of a page. Google may use it to generate the descriptive snippet displayed beneath a page’s title in the search results.
Meta descriptions aren’t a direct Google ranking factor, but the snippet shown in the search results can influence whether someone chooses to click your result.
Why does Google rewrite meta descriptions?
Google doesn’t simply take the meta description you’ve written and display it for every search.
Google says snippets are primarily created from the content of the page itself. It may use the meta description when that provides a more accurate description of the page, but the snippet can vary depending on the search query.
This means the same page can potentially appear with different descriptive text for different searches. Google is trying to show a snippet that it believes is relevant to what that particular user searched for.
That’s why having a well-written meta description doesn’t guarantee that Google will actually display it.
This often ties into how your title tags are written and how well they match search intent.
Here’s a real example.
For the search:
“google tag manager events not showing in analytics ga4”
Google displays one of my articles using the meta description I wrote for the page:
I’m happy with that snippet. At the time I took this screenshot, the article ranked at #7 for that query and had an 11% CTR, so the description appeared to be doing its job.
Further down the same results page was an article from the excellent blog of Julius Fedorovicius aka Analytics Mania.
In this case, Google wasn’t displaying the meta description that had been written for the page:
Looking at the page’s source code, you can see that a different meta description had actually been specified:
Instead, Google had generated the search snippet using content from further down the page:
Personally, I think the meta description written for the page is better than the snippet Google chose to display.
And this is exactly the problem data-nosnippet can help with: controlling which parts of the page Google is allowed to use when generating a search snippet.
Google can also rewrite title tags in search results.
For example, the title tag on my home page is:
“Freelance Website Optimisation Consultant”
But when searching for “Organic Digital”, Google has displayed the following title instead:
In this case, Google’s rewrite makes sense because “Organic Digital” is the brand being searched for.
I’ve covered Google rewriting title tags in more detail here, but for this article I’m going to concentrate specifically on controlling the content Google can use for your meta description snippet.
Meta Description Best Practices
Before trying to prevent Google from rewriting your meta description, make sure the description you’ve provided is actually worth displaying.
A good meta description should accurately describe the page, reflect the search intent you’re targeting and give someone a reason to click your result.
Include relevant keywords where they make sense, along with useful selling points or calls to action, but write primarily for the person reading the search result rather than trying to stuff keywords into it.
There’s also no fixed meta description character limit that guarantees Google will display the whole thing. Search snippets are truncated when necessary, so I’d concentrate on getting the important information across concisely rather than obsessing over an exact character count.
Meta descriptions are only one part of how your pages appear in search, alongside how your URLs are structured and how your title tags are written.
How can you stop Google rewriting your meta description?
You can’t force Google to display your meta description for every search, but you can control which parts of your page Google is allowed to use when generating a snippet.
Google provides the data-nosnippet HTML attribute for this purpose. When you apply it to supported elements on a page, Google won’t use the content within those elements to create a search snippet.
This can be useful when Google keeps replacing your meta description with text from a particular part of the page that you’d rather it didn’t use.
How To Use data-nosnippet
You can apply data-nosnippet to specific sections of a page that you don’t want Google to use when generating a search snippet.
Personally, I’ve taken a more aggressive approach on pages where I specifically want to discourage Google from pulling alternative snippet text. I apply data-nosnippet to the div containing the main page content:
This prevents Google from using the content inside that element to generate the search snippet, leaving it with far less page content to choose from.
In my case, after implementing this, Google began displaying my intended meta descriptions much more consistently:
It’s worth remembering that data-nosnippet doesn’t guarantee that Google will always display your chosen meta description. What it does give you is greater control over which parts of your page Google can use when generating an alternative snippet.
If Google is repeatedly pulling text from a particular section of your page, I’d start by applying data-nosnippet selectively to that content. My approach of applying it to the main content container is more restrictive, but as the examples above show, I’ve had good results with it.
And if changing your search snippets doesn’t improve your organic performance, the problem probably lies elsewhere. There may be other SEO issues you need to investigate.
If you need help diagnosing the issue or implementing this correctly, feel free to get in touch using the contact form below or email me at hello@daveashworth.co.
categories
- Analytics Insights
- Crawl Rate Insights
- Ecommerce SEO Insights
- International SEO Insights
- Keyword Research Insights
- Local SEO Insights
- Migrations Insights
- News Insights
- On Page SEO Insights
- Performance Analysis Insights
- SEO Audits Insights
- Site Speed Insights
- Structured Data Insights
- Tag Manager Insights
- Wordpress SEO Insights
latest posts
How To: Track GA4 AI Assistant Traffic, Including Historical Data
A Rough Guide To: LLMS.txt - What It Is & How To Create One
How To: Build SEO Content Hubs for Topical Authority
Case Study: Do Keywords in URLs Help SEO Rankings?
How To: Track Google Business Profile Traffic in GA4
get in touch
If you need some expert website optimisation and configuration, want to find out more, or even just have a question, fill in the form below as I will always be happy to help