How Many JSON-LD Blocks Should a Page Have?
Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
The short answer: One canonical block per page — that is AXO's guidance verbatim ('keep one canonical block per page type'). The failure it prevents is the multi-app pile-up: an SEO app, a reviews app, and a theme each injecting partial JSON-LD, overlapping in fields, diverging in values, one of them invalid. Consolidation means one owner (your theme or a single generator) emitting one complete, valid block per page type, using @graph if several entities need describing. The audit reads a consolidated page cleanly — every block valid, types coherent — which you can verify in the free audit.
What is a canonical JSON-LD block?
A canonical JSON-LD block is the single authoritative structured-data block for a page: one script element, owned by one generator, containing the complete description of the page's entity (or entities, via @graph). Canonical means it is the only block consumers need to read and the only one the store maintains — no competing partial blocks from themes, apps, or plugins.
How pages end up with five blocks
Nobody designs a five-block page; it accretes. The theme ships a WebSite block. The SEO app adds Product. The reviews app adds its own Product fragment with ratings. A marketplace integration injects an Offer. A tag manager adds Organization from a forgotten experiment. Each block was somebody's whole job at install time, and nobody's job ever since — least of all the job of checking what the page's blocks say collectively.
Collectively is where the damage lives: overlapping fields with divergent values (two prices, two availability claims), one block invalid (invalidating nothing else syntactically, but signalling a pipeline without checks), and types repeated inconsistently. Consumers pick a block — not necessarily the one you would pick — or merge defensively and trust the result less. The page's data layer becomes a committee transcript instead of a statement.
What consolidation actually involves
Inventory first: extract every ld+json block from a page per template, label its source (theme, app, integration) and its contents. Then assign one owner — normally the theme or a single store-controlled generator — to emit the complete block per template, disable the other injectors' structured-data output (most apps have the toggle; use it), and migrate any unique fields the fragments carried (review aggregates are the common one) into the canonical block under the owner's generation.
The migration step is where consolidations stall, so be honest about it in planning: the canonical block must be at least as rich as the union of the fragments, or stakeholders will defend their fragment. Richness is achievable — the owner generates from the same product data plus the reviews system's aggregate, fetched or synced. What is not achievable is five owners maintaining one truth; choose the union under one owner.
One block, many entities: the @graph pattern
A product page describes several entities — the Product, its Offer, the selling Organization, perhaps breadcrumbs. One canonical block handles this with @graph: an array of typed entities in a single script element, cross-referenced by @id. AXO's parser descends into @graph when collecting types, so graphs score exactly as their entities deserve. The graph pattern is the answer to the legitimate objection 'but my page needs more than one entity' — it never needed more than one block.
Keep graph discipline: @context at the root, @type on every node, @id values stable per entity kind (the Organization's @id should be the same URL fragment on every page, so consumers can merge your site-wide statements into one entity). A graph with stable ids is how a store publishes a coherent knowledge graph one page at a time. Details in the @graph guide.
What consolidation buys, measurably
Validity becomes achievable: one generator through one encoder, checked by one parser test, replaces five unknown pipelines. Audit findings simplify: structured data reads 100 or names the canonical block's gap, with no archaeology across apps. Changes become safe: a pricing-format change is edited once and verified once, rather than negotiated with every injector.
There is also an incident-response dividend. When (not if) a block breaks in production, a consolidated stack answers 'which system emits our JSON-LD?' instantly, and the fix lands in one place. In a fragmented stack, the same incident begins with an hour of source-hunting through app settings — while every agent visiting the page discards the broken testimony. The broken-block guide is the story of stacks that had not consolidated.
Exceptions and edge cases
A second block is tolerable when it describes a genuinely separate concern owned by a system you cannot fold in — a third-party widget whose markup you do not control, isolated to its own entity and valid. Tolerable is not desirable: document the exception in your runbook with its owner and its review date, so the exception does not become the precedent that re-fragments the page.
Platforms differ in how much injection control they grant. Where an app cannot disable its JSON-LD, the fallback is to make the app's block the canonical one (enrich and validate it, remove your theme's) or replace the app. The principle survives the tactics: one owner, one block, whatever its source.
Consolidation as a project plan
Week one: inventory blocks per template and assign the owner. Week two: build the canonical generator for the product template (the highest-value page), migrate fragment fields, disable competing product-page injectors, audit to structured-data 100. Following weeks: category and homepage templates on the same pattern. Total effort for a typical store is days, and the end state is self-maintaining in a way the fragmented state never was.
Verify each template in the free audit as it consolidates: the findings will shrink from a list of block pathologies to silence, which is what a healthy data layer sounds like. Then keep it that way with the validation routine standing guard over the single door.
The 5-action consolidation plan
- Inventory every block per template: source (theme/app/integration), contents, validity — in writing.
- Assign one owner per page type and one generator through one JSON encoder.
- Migrate fragment-unique fields (review aggregates are the usual one) into the canonical block before disabling injectors.
- Disable competing structured-data output in every app that offers the toggle; replace apps that do not.
- Use @graph for multi-entity pages with stable @id values, and audit each consolidated template to 100.
Worked example: five blocks walk into a page
Example — fictional, for illustration. A baby-goods store's product page carries five ld+json blocks: theme WebSite, SEO-app Product (valid, no availability), reviews-app Product fragment (invalid — a rating string interpolated unescaped), marketplace Offer, and a tag-manager Organization from 2022 naming a retired domain. The first audit's structured-data findings read like a charge sheet: one block fails to parse, types incoherent, the store's own name stated two ways.
Consolidation takes two weeks part-time: theme-owned canonical block per template (Product+Offer via @graph with the Organization), review aggregates migrated in, three injectors disabled, one app replaced. Re-audit: structured data 100 on every template, and the store's data layer becomes a one-page document a new developer can read in full. The five blocks were each defensible. Together they were indefensible — which is the whole argument for one canonical voice.
Related guides and the standing invitation
Companion reading for this topic: When Should JSON-LD Use @graph for Multiple Entities? · Why Is Broken JSON-LD Worse Than No JSON-LD? · How Do You Validate JSON-LD Before Agents Discard It? · What Do @context and @type Mean in JSON-LD?.
Whatever this guide led you to change, prove it the way every guide in this series ends: re-run the free audit on the same page and compare the dimension it names, read how the audit works if a finding is unclear, and see plans if you want the full guidance report and re-audit history while you work. A change you have not re-measured is a hope, not a fix.
Sources
- JSON-LD 1.1 — W3C Recommendation — the W3C Recommendation (2020) defining the JSON-LD syntax the markup in this guide uses.
- Product structured data — Google Search Central — Google Search Central's documentation for Product markup — how Google reads and validates it (current as of 2026).
Frequently asked questions
How many JSON-LD blocks should a page have?
One canonical block per page type, per AXO's guidance. Multiple entities on a page are handled inside that block with @graph, not by adding more blocks from more generators.
Why do multiple blocks cause problems?
Each injector maintains its own fragment with its own values and validity. Collectively they diverge (two prices, conflicting availability), break independently, and force consumers to guess which block is authoritative — or trust the page less overall.
What if an app won't let me disable its JSON-LD?
Make the app's block the canonical one if you can enrich and validate it, or replace the app. The principle — one owner, one block — matters more than which system ends up owning it.
Does AXO penalise multiple blocks directly?
It penalises their usual consequences: any invalid block withholds the validity points, and incoherent types show in the findings. A page with several valid, consistent blocks scores fine — but maintaining that state across five generators is the hard part consolidation removes.
What is @graph's role in consolidation?
@graph lets one block describe several typed entities (Product, Offer, Organization) with @id cross-references. AXO's parser reads types inside @graph, so a consolidated graph block scores exactly as its entities deserve.