In short
Titles, meta descriptions, H1s and JSON-LD structured data are produced by the site's templates, not written page by page. A template change, a plugin update or a theme change can therefore alter them on thousands of pages at once. Monitoring means taking a snapshot of these elements on one sample page per template, comparing the snapshot every day with an approved reference, and adding a crawl that counts empty or duplicate titles across the whole site. Any unintended difference triggers an alert.
Why it matters
Google builds the title link shown in its results mainly from the <title> element, and also relies on visible headings such as the H1. The meta description can be used as the snippet. Structured data describes the page to search engines: it determines rich results on Google and helps systems that extract facts (price, author, date, reviews) read them without ambiguity.
These elements break in characteristic ways:
- a title template loses its variable and every product page is called “Boutique | Example”;
- an SEO plugin update changes the separator or adds the site name twice;
- a theme change removes the
ProductJSON-LD block, and the rich results disappear a few days later; - a newly installed app adds a second
Productblock with a different price; - one comma too many makes the whole JSON-LD block unreadable;
- an A/B testing or personalization tool rewrites the H1 in the browser.
Search Console reports some of these regressions, several days late, and only for the types that are eligible for a rich result. It says nothing about a title that has become generic. Detailed validation of schema.org properties is covered in automate validation after each deployment (opens in a new tab); this guide is about detecting changes, continuously.
What it improves
- Click-through rate Titles and descriptions stay the ones you wrote, not a default value.
- Rich results The disappearance of a JSON-LD type is detected the same day, not when the stars or prices vanish from the results.
- Readability for generative engines Marked-up facts remain present and consistent with the page. No markup guarantees a citation.
- Diagnosis The date of the first deviation points to the deployment or update at fault.
- Rankings Indirect effect; the title is a relevance factor, but monitoring only prevents regressions.
How to check
Extract a page's elements with a single command:
curl -s https://example.com/produit/chaussure-trail-x2/ | grep -ioE '<title>[^<]*</title>|<meta[^>]+name="description"[^>]*>|<h1[^>]*>.*</h1>|"@type": ?"[A-Za-z]+"'
Expected result: a title specific to the page, a description, an H1 and the expected types (Product, Offer, BreadcrumbList…). Do the same on one page of each template.
In Search Console, the rich result reports (“Enhancements” and “Shopping” sections) should show a stable number of valid items. The Performance report, filtered by “Search appearance”, shows whether the impressions of a rich result type are dropping.
How to implement
Before you start
Choose the sample pages: one per template and per special case. Example for an online store:
| Template | Sample URL | Expected elements |
|---|---|---|
| Homepage | https://example.com/ |
Brand title, Organization, WebSite |
| Category | https://example.com/categorie/chaussures/ |
Title with the category name, BreadcrumbList |
| Product page | https://example.com/produit/chaussure-trail-x2/ |
Title with the product name, Product, Offer, BreadcrumbList |
| Out-of-stock product | https://example.com/produit/veste-pluie-k3/ |
Same elements, up-to-date availability |
| Article | https://example.com/blog/choisir-chaussures-trail/ |
Article title, BlogPosting, author |
| Local or service page | https://example.com/magasin-lyon/ |
LocalBusiness, address |
Choose stable content that will be neither deleted nor rewritten every week: otherwise, every editorial change triggers an alert. Ten to thirty pages are enough. Save them in pages-temoins.txt, one URL per line.
The check script
This Python script uses only the standard library. For each sample page, it extracts the title, meta description, H1s and JSON-LD types (including nested ones and those in an @graph), then compares them with the reference. It reports:
- an empty title, or one identical across several sample pages (a sign of a default value);
- a number of H1s other than one (an industry convention, not a Google rule: adjust if your template deliberately has several);
- an unreadable JSON-LD block;
- any change to the title, description or H1 compared with the reference;
- any JSON-LD type present in the reference that has disappeared.
Save it as /srv/controles/controle-titles.py:
#!/usr/bin/env python3
"""Compares the title, meta description, H1 and JSON-LD types of sample pages with a reference."""
import json, os, sys
from collections import Counter
from html.parser import HTMLParser
from urllib.request import Request, urlopen
URLS, REFERENCE = sys.argv[1], sys.argv[2]
ACCEPT = "--accept" in sys.argv
UA = "Mozilla/5.0 (compatible; controle-titles/1.0)"
class Page(HTMLParser):
def __init__(self):
super().__init__()
self.title, self.description, self.h1, self.jsonld = "", "", [], []
self.current = None
def handle_starttag(self, tag, attrs):
a = dict(attrs)
if tag == "title" and not self.title:
self.current = "title"
elif tag == "h1":
self.current = "h1"
self.h1.append("")
elif tag == "script" and (a.get("type") or "").lower() == "application/ld+json":
self.current = "jsonld"
self.jsonld.append("")
elif tag == "meta" and (a.get("name") or "").lower() == "description":
self.description = (a.get("content") or "").strip()
def handle_endtag(self, tag):
if tag in ("title", "h1", "script"):
self.current = None
def handle_data(self, data):
if self.current == "title":
self.title += data
elif self.current == "h1":
self.h1[-1] += data
elif self.current == "jsonld":
self.jsonld[-1] += data
def types(node):
if isinstance(node, list):
return [t for item in node for t in types(item)]
if not isinstance(node, dict):
return []
own = node.get("@type", [])
found = own if isinstance(own, list) else [own]
return found + [t for value in node.values() for t in types(value)]
def snapshot(url):
html = urlopen(Request(url, headers={"User-Agent": UA}), timeout=20).read().decode("utf-8", "replace")
page = Page()
page.feed(html)
found, errors = [], 0
for block in page.jsonld:
try:
found += types(json.loads(block))
except json.JSONDecodeError:
errors += 1
return {
"title": " ".join(page.title.split()),
"description": page.description,
"h1": [" ".join(h.split()) for h in page.h1],
"types": sorted(set(found)),
"jsonld_errors": errors,
}
urls = [line.strip() for line in open(URLS) if line.strip() and not line.startswith("#")]
reference = json.load(open(REFERENCE)) if os.path.exists(REFERENCE) else {}
current, alerts = {}, []
for url in urls:
try:
current[url] = snapshot(url)
except OSError as err:
alerts.append(f"ERROR {url}: {err}")
for url, now in current.items():
if not now["title"]:
alerts.append(f"EMPTY TITLE {url}")
if len(now["h1"]) != 1:
alerts.append(f"H1: {len(now['h1'])} tag(s) on {url}")
if now["jsonld_errors"]:
alerts.append(f"UNREADABLE JSON-LD ({now['jsonld_errors']} block(s)) {url}")
old = reference.get(url)
if not old:
continue
for field in ("title", "description", "h1"):
if old[field] != now[field]:
alerts.append(f"{field.upper()} CHANGED {url}\n before: {old[field]}\n after: {now[field]}")
lost = set(old["types"]) - set(now["types"])
if lost:
alerts.append(f"JSON-LD TYPES LOST {url}: {', '.join(sorted(lost))}")
for title, count in Counter(p["title"] for p in current.values()).items():
if title and count > 1:
alerts.append(f"DUPLICATE TITLE ({count} pages): {title}")
if ACCEPT or not reference:
json.dump(current, open(REFERENCE, "w"), ensure_ascii=False, indent=2)
print(f"Reference saved: {REFERENCE}")
print(f"{len(current)} pages checked, {len(alerts)} alert(s).")
print("\n".join(alerts))
sys.exit(1 if alerts and not ACCEPT else 0)
First run: it saves the reference. Reread the JSON file it produces and fix the site before approving it:
python3 controle-titles.py pages-temoins.txt reference-titles.json
Subsequent runs: it compares and exits with an error when there is a deviation. When a change is intended (new title template, new marked-up type), reread the alert and then accept the new reference:
python3 controle-titles.py pages-temoins.txt reference-titles.json --accept
Schedule it every night, and run it after each deployment:
45 4 * * * cd /srv/controles && python3 controle-titles.py pages-temoins.txt reference-titles.json > /tmp/titles.log 2>&1 || mail -s "Titles / JSON-LD: change detected" [email protected] < /tmp/titles.log
The script reads the initial HTML, without executing JavaScript. If your site inserts the title or JSON-LD on the client side, check the rendered page: see check rendered structured data (opens in a new tab). Keep the reference in a Git repository: the history of acceptances becomes the log of template changes, see review template changes (opens in a new tab).
With a scheduled crawl
Sample pages see the templates; the crawl sees the whole site. In each scheduled crawl (opens in a new tab), track these counts from one run to the next:
| Indicator | Where (Screaming Frog) | Alert |
|---|---|---|
| Missing titles | Page Titles tab, “Missing” filter |
Any increase |
| Duplicate titles | Page Titles tab, “Duplicate” filter |
Increase of more than 10% |
| Missing descriptions | Meta Description tab, “Missing” filter |
Marked increase |
| Missing H1s | H1 tab, “Missing” filter |
Any increase |
| Pages with structured data | Structured Data tab (JSON-LD extraction turned on in Configuration > Spider > Extraction) |
Decrease |
| Validation errors | Structured Data tab, validation filters |
Any increase |
Screaming Frog's crawl comparison mode sets two runs side by side and highlights the URLs whose elements have changed. Semrush, Ahrefs and Sitebulb track equivalent counts in their recurring audits. To fix generic titles once detected, see avoid generic and repetitive titles (opens in a new tab).
With Search Console
- Notifications: Search Console emails owners and users when a new issue appears in a rich result report. Check the list in Users and permissions.
- Weekly reading: the number of valid and invalid items in each report. The full routine is described in monitor Search Console errors (opens in a new tab).
- Rewritten titles: Search Console does not report when Google shows a title other than your
<title>. Search for your key pages on Google from time to time; frequent rewriting often indicates a title that is too long, generic or different from the H1.
With a monitoring service
Conductor Website Monitoring (formerly ContentKing) monitors pages continuously and alerts on changes to content and SEO elements, with a history of changes. Little Warden monitors, among other things, content changes on a list of URLs. These paid services replace the script when several teams publish and deploy without coordination.
WordPress
Versions WordPress 6.4 and later.
Titles are produced by the theme or, more often, by the SEO plugin from templates (in Yoast SEO: Settings > Content types; in Rank Math, the Titles & Meta section). After each update of the plugin, the theme or a page builder, run the script and reread the deviations. Two pitfalls specific to WordPress:
- Duplicate JSON-LD: the SEO plugin, a reviews plugin and an e-commerce plugin can each add a
ProductorOrganizationblock. The script does not count duplicates; the Rich Results Test shows them. - Cache: after a fix, purge the page cache, otherwise the script reads the old version again.
Shopify
Versions Shopify, all plans, November 2026.
The title comes from layout/theme.liquid (usually {{ page_title }}), and the JSON-LD from the theme's sections or from apps. Run the script after each theme publication and each installation of an app that touches reviews, SEO or prices. An app that adds its own Product block alongside the theme's creates two competing descriptions of the same product.
Laravel
Versions Laravel 11 to 13.
Protect templates with feature tests that fail before going to production:
it('renders a title and a Product JSON-LD on the product page', function () {
$product = Product::factory()->create(['name' => 'Chaussure trail X2']);
$response = $this->get(route('products.show', $product));
$response->assertOk()
->assertSee('<title>Chaussure trail X2 | Example</title>', false)
->assertSee('"@type":"Product"', false);
});
Adapt the expected strings to your markup, and in particular to the JSON encoding (json_encode does not add a space after the colon). The monitoring script remains useful in production: real data produces cases that test factories do not cover.
Next.js
Versions Next.js 15 and 16 (App Router).
The title template is declared in the root layout with title: { template: '%s | Example', default: 'Example' }, then each page provides its title through metadata or generateMetadata. A page that forgets to do so inherits the default title: the script reports it as “DUPLICATE TITLE”. The JSON-LD goes into a <script type="application/ld+json"> tag rendered by the page component; check that it is actually in the served HTML and not only added after hydration.
Common mistakes
- Choosing short-lived sample pages: a deleted product or an article rewritten every week generates alerts unrelated to any template.
- Accepting the reference without rereading it: the accept option clears the alert, not the regression.
- Monitoring only the JSON-LD type: a
Productblock that is present but has an empty price passes this check. Add the property validation from the guide on automating validation after deployment. - Confusing a rewrite by Google with a regression: Google may show a title other than your
<title>without your page having changed. The script checks your HTML, not what is displayed in the results. - Monitoring only staging: plugins, apps and real data there are not always identical to production.
- Ignoring multilingual sites: take sample pages in each language; a missing translation often falls back to the default language's title.
Frequently asked questions
How do I know whether my titles have changed?
To know whether your titles have changed, compare them with a saved reference. A script extracts the title of one sample page per template every day and reports any difference; a scheduled crawl counts empty or duplicate titles across the whole site from one run to the next. Search Console does not report these changes: it only shows the possible effect on clicks, several days later.
Does Google always show my title tag?
No. Google builds the title link of each result mainly from the title tag, but it can use other elements of the page, such as the H1 or visible headings, when it considers the title too long, generic or unrepresentative. A title specific to each page, descriptive and consistent with the H1, reduces these rewrites without being able to prevent them entirely.
What happens if my structured data disappears?
When structured data disappears from a template, the affected pages lose their eligibility for the corresponding rich results, such as prices, reviews or breadcrumbs, as Google recrawls them. The report for that type in Search Console then shows a drop in valid items. Restoring the markup is enough, but the return of rich results also depends on recrawling.
How often should you monitor titles and structured data?
Monitor titles and structured data every day on one sample page per template, and after each deployment, plugin update or theme change. Add a weekly or monthly crawl that counts missing or duplicate titles across the whole site, and a weekly reading of the rich result reports in Search Console.
Resources
- Google Search Central: title links in search resultsdevelopers.google.com
- Google Search Central: snippets and meta descriptiondevelopers.google.com
- Google Search Central: general structured data guidelinesdevelopers.google.com
- schema.org: vocabularyschema.org
- Next.js: generateMetadata and title templatesnextjs.org
- Python: the json moduledocs.python.org
Updated on
Topic checklist (PDF)