Schema Markup: A Practical Guide For Large Sites
Schema markup is the least ambiguous thing in technical SEO: a defined vocabulary for describing a page's content in a form a machine can read. What makes it ambiguous is everything around it, the choice of syntax, the temptation to mark up every possible type, and the near-universal assumption that adding markup makes a page rank better. This guide covers what structured data does and does not do, which types are worth the engineering effort, and how to template it across a large site without introducing a new class of silent failure.
What it is, precisely
Structured data is a machine-readable description of the entities on a page. It lets a search engine move from "a string of words" to "a product, priced at 42 pounds, in stock, from an organisation with these identifiers".
Two things follow from that definition, and both are routinely forgotten.
First, structured data describes; it does not instruct. It cannot make a page indexable, cannot override a canonical, cannot fix thin content, and cannot affect crawl priority. A page marked up perfectly and blocked in robots.txt stays invisible.
Second, it is a claim, and claims are verified. Google has stated that it can use structured data to generate a manual action when the markup describes content that is not on the page. This is rare and reserved for deliberate abuse, but it is the reason "mark everything up" is not a neutral strategy.
| Expectation | Reality |
|---|---|
| Rich results and enhanced appearance | Yes, for eligible types |
| Better understanding of the page | Yes, generally accepted |
| Direct ranking boost | Not a documented mechanism |
| Higher click-through rate | Often, when an eligible rich result appears |
| Guaranteed inclusion in results | No, eligibility is not entitlement |
Choosing a syntax
There are three syntaxes. Only one of them is a good choice for a new implementation.
| Syntax | Where it lives | Maintenance | Recommendation |
|---|---|---|---|
| JSON-LD | Separate script block | Easy | Use this |
| Microdata | Throughout the HTML | Painful at scale | Do not start new work |
| RDFa | Throughout the HTML | Painful at scale | Do not start new work |
Microdata and RDFa interleave with presentational markup, which means a front-end refactor can silently destroy structured data. That has happened at scale more often than any other single schema failure. JSON-LD lives in one block that your template controls and your designers do not touch, which is the entire argument.
There is one legacy caveat: some very old consumers still only read Microdata. Unless you have evidence that a specific consumer needs it, this is not a reason to author markup twice.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://example.com/"
},
{
"@type": "ListItem",
"position": 2,
"name": "Tools",
"item": "https://example.com/tools/"
},
{
"@type": "ListItem",
"position": 3,
"name": "Drill press"
}
]
}
</script>
Note the last item has no item property. That is not an oversight; for the final entry the current item is the page itself, and omitting the URL is the documented pattern rather than an accident.
Which types are worth the effort
Most schema work on large sites is wasted because teams implement types with no eligible rich result. Ranked by return on engineering time:
| Type | Eligible rich result | Effort | Worth it? |
|---|---|---|---|
| BreadcrumbList | Breadcrumb trail in results | Low | Almost always |
| Organization | Knowledge panel details | Low | Almost always |
| Article | Headline, image, date in results | Medium | On publishers |
| Product | Price, availability, rating | Medium | On retail |
| FAQPage | Was once rich, now largely restricted | Low | Rarely |
| HowTo | Was deprecated from rich results | Low | No |
| LocalBusiness | Local pack and map data | Medium | On local sites |
| ProductGroup | Variant handling | High | Only if variants are a real problem |
The middle of that table changed more than most people realise. FAQ and HowTo rich results were withdrawn because they were being used to win positions for content that did not merit one. If your structured data plan has a large FAQ block in it, revisit the assumption.
Mark up the things a search engine can verify against the page. Everything else is decoration.
Templating it across a large site
This is where most implementations fail. A hand-written JSON-LD block is correct on the template and wrong on 400,000 URLs, because the values were interpolated from the wrong variables, or escaped wrongly, or omitted when a field was empty.
Three rules cover most of it:
- One block, driven by one data object, not assembled from scattered template variables.
- Omit properties rather than emitting empty strings. An empty
priceis worse than an absent one. - Escape the block. A product name containing a quotation mark will break the JSON and take the entire structured data block with it.
const jsonLd = {
'@context': 'https://schema.org',
'@type': 'Product',
name: product.title,
description: product.summary,
sku: product.sku,
brand: {
'@type': 'Brand',
name: product.brand
},
offers: product.price > 0 ? {
'@type': 'Offer',
price: product.price.toFixed(2),
priceCurrency: product.currency,
availability: product.stock > 0
? 'https://schema.org/InStock'
: 'https://schema.org/OutOfStock'
} : undefined
};
const cleaned = JSON.parse(JSON.stringify(jsonLd));
const html = `<script type="application/ld+json">${
JSON.stringify(cleaned).replace(/</g, '\\u003c')
}</script>`;
Two details in that snippet are load-bearing. The round-trip through JSON.stringify and JSON.parse removes every property that resolved to undefined, which handles rule two without you writing an omit function per type. And escaping the less-than sign prevents a product name containing markup from closing the script element early, which is both a correctness bug and an injection risk.
Validating, and validating at scale
| Tool | What it checks | Scale behaviour |
|---|---|---|
| Schema Markup Validator | Syntax and vocabulary | One URL at a time |
| Rich Results Test | Syntax plus eligibility | One URL at a time |
| Search Console enhancement reports | Production errors by pattern | Aggregated, useful |
| URL Inspection | Live render of a specific URL | Quota-limited |
The single-URL tools are necessary and insufficient. You need them for correctness on the template, and you need the Search Console enhancement report for production. The gap between the two is where real damage lives: a template that validates perfectly and a page where the price field is missing because that product has no price.
For a large catalogue, sample. Take a fixed sample per template, including edge cases from the data rather than only the common case, and validate those. Products with no price, no image, no brand and a very long name will break a template that passes on the popular end.
The failures worth naming
| Failure | Consequence |
|---|---|
| Markup describes content not on the page | Manual action risk, ignored markup |
| Stale generated markup | Prices from six months ago in results |
| Nested or duplicated blocks | Parser takes the first, ignores the rest |
| Organisation markup on every page | Main entity confusion across templates |
| Markup generated by a third-party tag | Replaced on the next tag change |
| No version control on schema templates | Regressions ship with feature work |
The last one is worth dwelling on. Structured data lives in your repository and should be reviewed like code. On most large sites it lives in a tag manager container, is edited by whoever needed it last, and has no history.
Where to start
Pick three types, not thirty: Organization on the site root, BreadcrumbList on every template that has a hierarchy, and one type specific to what the site actually is. Validate the template in the Rich Results Test before templating. Then check the Search Console enhancement report weekly, because that is the only place production errors surface at a population you care about.
Once the markup is right, check that it is describing pages you would be happy to have indexed, because markup on a page Google has discarded is effort spent on nothing. That question belongs to the triage and pattern analysis section of the User Guide, and the triage and verdict classification page explains how PruneSEO separates the two problems. For setting up the crawl that establishes which templates exist in the first place, start with running and monitoring crawls.