The Ultimate Guide to Meta Tags (Part 9): Debug Metadata Problems Without Guessing
A practical workflow for debugging titles, descriptions, canonicals, robots directives, social previews and metadata rendering problems across real production sites.

Metadata problems are deceptive because the HTML can look perfectly reasonable while the thing you care about — Google Search, a social preview, a browser tab, a crawler or a messaging app — behaves differently.
That is why metadata debugging should never start with “the tag is there, so why is it broken?”
Start with a better question:
What did the consuming system actually receive, and what rules did it apply after receiving it?
That single distinction explains a surprising number of production SEO incidents.
A title can exist in the browser DOM but be absent from the initial response. A canonical can be syntactically valid but point into a redirect chain. A noindex tag can be correct but invisible to Google because robots.txt prevents crawling. An Open Graph image can exist but return a 403 to the social crawler. A CMS can emit two competing canonical tags. A client-side router can leave stale metadata behind after navigation.
This guide is about finding those failures systematically.
The four layers you need to inspect
Most metadata bugs live in one of four places:
- The source data — the CMS, database or page model contains the wrong value.
- The rendering layer — the template or framework emits the wrong markup.
- The delivery layer — CDN, cache, middleware or edge logic serves stale or altered HTML.
- The consumer layer — Google, a browser or a social crawler interprets the page differently from your assumption.
Treat those layers separately. Otherwise you can spend an hour editing a template when the actual problem is a CDN cache key.
Step 1: inspect the raw HTML response
Do not begin in DevTools Elements.
The Elements panel shows the live DOM after JavaScript has run. That is useful, but it is not the same as the original HTML response.
Use one of these instead:
curl -sL https://example.com/page | sed -n '/<head>/,/<\/head>/p'
Or save the response and inspect it directly:
curl -sL https://example.com/page -o page.html
You are looking for the actual server-delivered values:
<title>Example Product | Acme</title>
<meta name="description" content="A useful description of the product.">
<link rel="canonical" href="https://example.com/products/example-product">
<meta name="robots" content="index,follow">
<meta property="og:title" content="Example Product | Acme">
<meta property="og:image" content="https://example.com/social/example-product.jpg">
This immediately answers several important questions:
- Was the metadata rendered server-side?
- Did the page contain the correct values before JavaScript executed?
- Are there duplicate tags?
- Did a CDN serve an old version?
- Is the canonical absolute and correct?
- Are social images using public HTTPS URLs?
Audit the rendered page, not the CMS form
SiteTidy can help surface metadata, canonical and indexing problems from the page users and crawlers actually receive.
Step 2: compare raw HTML with the live DOM
Now open DevTools and inspect the final DOM.
If the raw HTML and live DOM differ, JavaScript is changing metadata.
That is not automatically wrong. Client-side applications frequently update <title> and meta tags during navigation. The problem is assuming every crawler, social bot or external tool will execute the same JavaScript path as a browser.
A useful comparison table looks like this:
| Field | Raw response | Live DOM | Expected |
|---|---|---|---|
| Title | Product | Product — Acme | Product — Acme |
| Description | missing | present | present in response |
| Canonical | /products/123 |
/products/widget |
/products/widget |
| Robots | index | index | index |
The mismatch tells you where to investigate.
For important public pages, critical metadata should generally be available in the rendered HTML response rather than depending on a delayed client-side update.
Step 3: check for duplicate metadata
Duplicate tags are common on component-based sites.
A base layout may emit a canonical while a page component emits another. A plugin may create an Open Graph block while the application creates its own. A CMS integration may output a description in addition to the framework’s SEO component.
Search the source for repeated elements:
curl -sL https://example.com/page | grep -Ei '<title|meta .*description|canonical|robots|og:'
Particularly dangerous duplicates include:
<link rel="canonical" href="https://example.com/a">
<link rel="canonical" href="https://example.com/b">
and:
<meta name="robots" content="index,follow">
<meta name="robots" content="noindex,follow">
Do not rely on a consumer to guess which one you intended.
Your production output should have one deliberate source of truth for each page-level decision.
Step 4: verify HTTP status and redirects
Metadata on the wrong URL is still wrong metadata.
Check the response chain:
curl -I https://example.com/old-url
and:
curl -IL https://example.com/old-url
Look for:
- unintended
302or307redirects, - canonical URLs that redirect,
- HTTP-to-HTTPS chains,
- trailing-slash loops,
- redirects between
wwwand apex domains, - soft-404 pages returning
200, - error pages inheriting a normal page title and canonical.
If your canonical points at a URL that immediately redirects elsewhere, you are creating an unnecessary conflict.
Prefer the final canonical URL directly.
Step 5: test robots rules as a system
A page’s indexability is not determined by one line of HTML.
You need to consider:
- HTTP status,
- robots.txt,
<meta name="robots">,X-Robots-Tag,- canonicalization,
- authentication,
- crawlability,
- and whether the URL is reachable internally.
A classic mistake looks like this:
User-agent: *
Disallow: /private-preview/
combined with:
<meta name="robots" content="noindex">
The owner thinks the page is safely marked noindex. But if a crawler is prevented from fetching the page, it may never see the noindex directive.
For confidential content, do not use crawler controls as access control. Require authentication or otherwise prevent public access.
Step 6: inspect response headers
Some metadata lives outside the HTML.
Check headers with:
curl -I https://example.com/document.pdf
You may find:
X-Robots-Tag: noindex
This is especially useful for PDFs, generated files and other resources that cannot conveniently contain HTML metadata.
Be careful with infrastructure-level rules. A reverse proxy that adds X-Robots-Tag: noindex to an entire path can quietly remove thousands of pages from search.
Step 7: debug canonical disagreement
If Google selects a different canonical, do not treat that as an isolated tag failure.
Canonicalization is a cluster-level decision.
Check whether your signals agree:
- canonical tag,
- redirects,
- internal links,
- sitemap URLs,
- hreflang references,
- HTTP vs HTTPS,
- duplicate content,
- parameter URLs,
- trailing slash conventions.
Imagine these signals:
Canonical tag: https://example.com/product
Sitemap: https://example.com/product?ref=shop
Internal link: https://example.com/product/
Redirect: /product -> /product/
You have effectively given three answers.
The fix is not “make the canonical tag stronger”. The fix is to make the site architecture coherent.
Step 8: debug title rewrites
A search engine may display a title different from the literal <title> element.
Before assuming something is broken, compare:
<title>,- visible H1,
- prominent headings,
og:title,- anchor text pointing to the page,
- site name/brand patterns,
- repeated boilerplate.
For example:
<title>Cheap Blue Widgets | Cheap Widgets | Widgets Online | Acme</title>
<h1>Blue Widget Model 47</h1>
The search engine has good reason to consider an alternative title.
A cleaner title would be:
<title>Blue Widget Model 47 | Acme</title>
The goal is not to force a search engine to reproduce your string character-for-character. The goal is to give it a clear, accurate and useful title signal.
Step 9: debug missing or rewritten descriptions
Meta descriptions are hints for snippets, not commands.
If your provided description is ignored, ask:
- Does it describe the page users actually see?
- Is it boilerplate repeated across many pages?
- Is it generic marketing copy?
- Does the page contain a better passage matching the query?
- Is the description stale relative to the body content?
Bad:
<meta name="description" content="Welcome to our website. Find out more today.">
Better:
<meta name="description" content="Calculate compound interest with monthly contributions, adjustable rates and an annual growth breakdown.">
Search systems may still choose another snippet for a particular query. That is expected behaviour.
Step 10: debug social preview failures
Social preview systems have their own caches, user agents and fetch rules.
If an Open Graph card is wrong, verify the image directly:
curl -I https://example.com/social/card.jpg
Check:
200response,- HTTPS,
- correct
Content-Type, - sensible file size,
- no authentication,
- no bot blocking,
- no expiring signed URL,
- no redirect to a login page,
- valid image dimensions.
Then inspect the HTML returned specifically to the crawler user agent if your infrastructure varies output by user agent.
Avoid that variation unless there is a strong reason. It makes production behaviour harder to reason about.
Caches make metadata bugs look random
There may be several independent caches involved:
- CMS cache,
- application cache,
- static build output,
- CDN edge cache,
- browser cache,
- search engine index,
- social preview cache.
That is why “I changed the tag but nothing happened” is not enough information.
Record:
- when the source data changed,
- when the site was rebuilt/deployed,
- whether the CDN cache was purged,
- what the raw response currently contains,
- whether the external platform has fetched the new version.
That timeline quickly separates deployment problems from recrawl delays.
Test templates, not just individual pages
On a large site, metadata failures are usually systematic.
If one calculator page has a broken canonical because of a template bug, 5,000 calculator pages may have the same bug.
That means your QA should operate at two levels:
Page-level validation
Check specific high-value pages manually.
Template-level validation
Sample every content type:
- homepage,
- category page,
- guide,
- calculator/tool,
- paginated listing,
- search page,
- filtered URL,
- account page,
- error page.
This catches architecture-wide mistakes much earlier.
Automate metadata assertions
A simple test can prevent a surprising amount of damage.
Pseudo-code:
expect(page.title).not.toBeEmpty()
expect(page.title.length).toBeLessThan(200)
expect(page.canonical).toBeAbsoluteUrl()
expect(page.canonicalCount).toBe(1)
expect(page.metaDescriptionCount).toBeLessThanOrEqual(1)
expect(page.robots).not.toContainUnexpected('noindex')
You can also crawl a staging build and detect:
- duplicate titles,
- duplicate descriptions,
- missing canonicals,
- malformed URLs,
- canonicals to non-200 pages,
- accidental
noindex, - missing Open Graph images,
- redirect chains,
- inconsistent hreflang.
Do not make every uniqueness check a hard build failure. Some duplication is legitimate. The goal is to catch suspicious patterns without turning the build pipeline into noise.
A practical metadata incident workflow
When something goes wrong in production, use this order:
- Fetch the affected URL without a browser.
- Record status code and redirect chain.
- Inspect the raw
<head>. - Inspect response headers.
- Compare with the browser DOM.
- Compare with a known-good page of the same type.
- Check the page’s source data.
- Check template/component logic.
- Check CDN/cache behaviour.
- Check the external consumer’s latest known version.
That workflow is intentionally boring. Boring is good. It prevents random edits.
Do not debug SEO with folklore
Several common responses to metadata incidents waste time:
- “Add more keywords.”
- “Make the title exactly 60 characters.”
- “Submit the sitemap again and it will fix it.”
- “The meta description is a ranking factor.”
- “Google has to use the canonical.”
- “The tag exists in DevTools, so Google definitely sees it.”
None of those is a useful diagnosis.
Inspect the evidence instead.
Production checklist
Before closing a metadata incident, verify:
- the final URL returns the intended status,
- the raw HTML contains the expected metadata,
- there are no conflicting duplicate tags,
- canonical signals agree,
- robots directives are intentional,
- important metadata is not dependent on fragile client-side execution,
- Open Graph assets are publicly retrievable,
- CDN caches contain the new version,
- templates have been checked for wider impact,
- monitoring or tests have been added to stop the same failure recurring.
The useful question is always “what was actually served?”
Metadata debugging becomes dramatically easier when you separate source data, rendered HTML, delivery infrastructure and external consumer behaviour.
Explore SiteTidy tools →Final thought
Metadata is not magic SEO decoration. It is a collection of machine-readable signals moving through a real delivery system.
When those signals fail, inspect the system end to end.
Do that, and most “mysterious SEO problems” stop being mysterious surprisingly quickly.
