Skip to main content

Schema Markup: A Practical Guide For Large Sites

· 7 min read
Indexation audit for large websites

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.

ExpectationReality
Rich results and enhanced appearanceYes, for eligible types
Better understanding of the pageYes, generally accepted
Direct ranking boostNot a documented mechanism
Higher click-through rateOften, when an eligible rich result appears
Guaranteed inclusion in resultsNo, eligibility is not entitlement

Choosing a syntax​

There are three syntaxes. Only one of them is a good choice for a new implementation.

SyntaxWhere it livesMaintenanceRecommendation
JSON-LDSeparate script blockEasyUse this
MicrodataThroughout the HTMLPainful at scaleDo not start new work
RDFaThroughout the HTMLPainful at scaleDo 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:

TypeEligible rich resultEffortWorth it?
BreadcrumbListBreadcrumb trail in resultsLowAlmost always
OrganizationKnowledge panel detailsLowAlmost always
ArticleHeadline, image, date in resultsMediumOn publishers
ProductPrice, availability, ratingMediumOn retail
FAQPageWas once rich, now largely restrictedLowRarely
HowToWas deprecated from rich resultsLowNo
LocalBusinessLocal pack and map dataMediumOn local sites
ProductGroupVariant handlingHighOnly 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:

  1. One block, driven by one data object, not assembled from scattered template variables.
  2. Omit properties rather than emitting empty strings. An empty price is worse than an absent one.
  3. 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​

ToolWhat it checksScale behaviour
Schema Markup ValidatorSyntax and vocabularyOne URL at a time
Rich Results TestSyntax plus eligibilityOne URL at a time
Search Console enhancement reportsProduction errors by patternAggregated, useful
URL InspectionLive render of a specific URLQuota-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​

FailureConsequence
Markup describes content not on the pageManual action risk, ignored markup
Stale generated markupPrices from six months ago in results
Nested or duplicated blocksParser takes the first, ignores the rest
Organisation markup on every pageMain entity confusion across templates
Markup generated by a third-party tagReplaced on the next tag change
No version control on schema templatesRegressions 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.