In short
Structured data must describe the page the visitor sees, nothing more and nothing else. A price, a rating, an FAQ or opening hours present in the JSON-LD but missing from the page, or different from what it displays, make the markup ineligible for rich results and can lead to a manual action. Once the check is done, each template produces its markup from the same data as the display, and a regular check detects any discrepancy.
Why it matters
Google's general structured data guidelines are explicit: do not mark up content that is not visible to readers of the page, do not mark up content that is misleading or irrelevant to the page, and make sure the markup is a true representation of its content. When a page contains several items, for example several reviews, mark them all up. The guidelines for each type add their own requirements: for reviews, the rating and the text must be visible on the marked-up page; for an aggregate rating, users must be able to see it.
Failing to comply has two documented consequences. First, technically valid markup may not show up as a rich result. Second, Google can apply a "Structured data issue" manual action, which removes the eligibility of the affected pages for rich results, without affecting their ranking in web search.
Discrepancies rarely come from an intention to deceive. They arise from two data sources that live separately: a sale price displayed by JavaScript but not carried over into the JSON-LD, a reviews plugin that publishes the rating from an external platform, an FAQ removed from the text but left in the markup, summer opening hours updated on the page but not in the code.
For generative engines, two versions of the same information on one page are two sources that contradict each other. None documents how it decides between them; consistency remains the only safe position.
What it improves
- Eligibility for rich results Aligned markup meets the basic condition. Display is never guaranteed.
- Risk of a manual action Reduced. See avoid fake reviews and misleading data (opens in a new tab).
- Merchant listings Merchant Center compares the price and availability on the page with those in the feed; a mismatch can lead to products being disapproved. See sync prices and stock across site, feeds and markup (opens in a new tab).
- Visitor trust A price or rating shown in Google that differs on the page disappoints from the very first click.
- Rankings No direct effect.
How to check
Open one page per template in Chrome, then paste this code into the developer tools console. It walks through every JSON-LD block and shows, for each text or numeric value, whether it appears in the visible text of the page:
(() => {
const visibleText = document.body.innerText.replace(/\s+/g, ' ').toLowerCase();
const ignoredKeys = /^(@context|@type|@id|url|image|logo|sameAs|mainEntityOfPage|availability|itemCondition|priceCurrency|contentUrl|thumbnailUrl|embedUrl)$/;
const rows = [];
const walk = (node, path) => {
if (Array.isArray(node)) {
node.forEach((item, index) => walk(item, `${path}[${index}]`));
return;
}
if (node && typeof node === 'object') {
Object.entries(node).forEach(([key, value]) => {
if (!ignoredKeys.test(key)) {
walk(value, `${path}.${key}`);
}
});
return;
}
const value = String(node).replace(/\s+/g, ' ').trim().toLowerCase();
if (value.length < 2 || value.startsWith('http')) {
return;
}
const found = [value, value.replace('.', ',')].some((candidate) => visibleText.includes(candidate));
rows.push({ property: path, value: String(node).slice(0, 80), visible: found ? 'yes' : 'NO' });
};
document.querySelectorAll('script[type="application/ld+json"]').forEach((script, index) => {
try {
walk(JSON.parse(script.textContent), `block${index}`);
} catch (error) {
rows.push({ property: `block${index}`, value: error.message, visible: 'invalid JSON' });
}
});
console.table(rows);
})();
Read each NO yourself: the script compares strings, it does not understand formats. An ISO date (2026-03-12T09:30:00+01:00) displayed as "12 mars 2026", a price 1299.00 displayed as "1 299,00 €" or a truncated description are false positives. Text placed in a closed accordion is also flagged, because innerText ignores hidden elements: check that it opens with a click. Real discrepancies, on the other hand, stand out: a different price, a missing rating, an FAQ question that cannot be found.
Add two further checks:
- Rich Results Test in URL mode: it shows what Google detects after rendering. Compare it with the page as displayed on mobile, the version Google uses for indexing. See check structured data parity (opens in a new tab).
- Search Console: the Manual actions report must say that no issues were detected.
How to implement
Before you start
The principle that settles almost every case: a single data source for both the display and the markup. The JSON-LD must be generated by the same code and from the same variables as the visible HTML, never entered separately.
The most frequent discrepancies, by type:
| Type | Properties to watch | Typical discrepancy |
|---|---|---|
Product, Offer |
price, priceCurrency, availability, name |
Sale price or selected variant not carried over; price excluding VAT marked up, price including VAT displayed |
AggregateRating, Review |
ratingValue, reviewCount |
Rating from an external platform; rating marked up but not displayed |
FAQPage |
name of the questions, text of the answers |
Questions removed from the page, answers rewritten |
Article |
headline, author, datePublished, dateModified |
Displayed date and marked-up date differ; author missing from the page |
LocalBusiness |
openingHoursSpecification, telephone, address |
Seasonal hours updated on the page only |
Event, JobPosting |
startDate, eventStatus, validThrough |
Cancelled event or filled job still marked up |
BreadcrumbList |
name, item |
Breadcrumb in the markup different from the one displayed |
Step 1 — List the templates
Draw up the list of templates that carry markup, with a test URL for each one and for each special case:
| Template | Test URL | Marked-up types | Special cases to test | Owner |
|---|---|---|---|---|
| Product page | /thes/sencha-bio/ |
Product, Offer, AggregateRating, BreadcrumbList | Product on sale, out-of-stock product, product with variants | Developer |
| Blog post | /blog/choisir-the-vert/ |
BlogPosting, BreadcrumbList | Updated post, post with two authors | Writer |
| Location page | /contact/ |
LocalBusiness | Summer hours, exceptional closure | Marketing |
Step 2 — Audit and record
Run each URL through the script from the "How to check" section, then record the confirmed discrepancies: template, property, marked-up value, displayed value, origin of the discrepancy. The origin dictates the fix: theme code, plugin, third-party app, manual entry.
Step 3 — Fix at the source
Fix the generator, not the page: a manual fix on one URL leaves all the others broken. The following sections cover the cases specific to each environment.
WordPress
Versions WordPress 6.4 to 7.1, WooCommerce 9 to 11, Yoast SEO 20 and later, Rank Math 1.0.
- WooCommerce generates its
Productblock from the product data: price, stock and rating stay aligned by design. Discrepancies come from plugins that add a secondProduct, from a price changed in JavaScript by a dynamic pricing plugin, or from a schema plugin configured by hand. Keep a single source and test a product on sale. - FAQ or review plugins: prefer those that produce the markup from the displayed block (the Yoast SEO or Rank Math FAQ block in the editor, for example). FAQ markup entered in a separate field always ends up diverging.
- "Free-form" schema plugins: a field where you paste JSON-LD per page is the most common source of discrepancy. Keep it for cases the theme does not cover, and review it every time the page is updated.
Shopify
Versions Online Store 2.0 themes (Horizon, Dawn), all Shopify plans, November 2026.
The structured_data filter produces a Product or a ProductGroup from the product data, and is therefore aligned with the catalog. Check three points:
- Review apps: the marked-up rating must be the one displayed on the product page, based on reviews left on your store. Disable any rating block imported from a third-party platform.
- Variants: when the URL points to a variant (
?variant=), the marked-up price and availability must be those of that variant. - Prices by market: with several markets and currencies, the marked-up price must be in the currency shown to the visitor of that URL.
Laravel
Versions Laravel 11 to 13, Pest 3 and later.
Pass a single object to the view (a model or a DTO, Data Transfer Object) and build the JSON-LD from that same object, not from a separate query. A feature test locks in the alignment:
it('shows the marked-up price on the product page', function (): void {
$product = Product::factory()->create(['price' => 24.90]);
$response = $this->get(route('products.show', $product));
preg_match('/<script type="application\/ld\+json">(.*?)<\/script>/s', $response->getContent(), $matches);
$schema = json_decode($matches[1], true);
expect((float) $schema['offers']['price'])->toBe(24.90);
$response->assertSee('24,90 €');
});
Adapt the price format to your display.
Next.js
Versions Next.js 15 and 16 (App Router).
Build the JSON-LD in the same server component as the rendering, from the same product or post object. If a price or stock level is refreshed on the client (a client component that queries an API), the initial JSON-LD becomes wrong as soon as the value changes: render this data on the server, with suitable revalidation, rather than letting two values coexist.
Google Tag Manager
JSON-LD injected by Tag Manager that reads the DOM through variables stays aligned as long as the CSS selectors do not change. A theme redesign silently breaks the reading and produces empty or wrong values. If you have no other option, add the page to the automated check in step 4.
Step 4 — Prevent drift
- After every template change: run the script again on the test URLs.
- On every deployment: automated check of the key values. See automate validation after each deployment (opens in a new tab).
- When seasonal content changes (opening hours, promotions, events): the person who edits the page checks the markup, or the markup is generated automatically from the same fields.
Common mistakes
- Marking up what the page does not show: aggregate rating, FAQ or price present only in the JSON-LD to obtain a rich result.
- Two sources for the same data: the product's "price" field and a "schema price" field in a plugin.
- Price excluding VAT in the markup, price including VAT on screen (or the other way round) on a consumer site.
- Promotion applied in JavaScript: the struck-through price is displayed, the markup keeps the old price.
- Cancelled event or filled job offer still marked up as active.
- FAQ duplicated on every page of a template when it is displayed on only one.
- Fixing one page instead of the template: the discrepancy comes back at the next update.
Frequently asked questions
Should the price in structured data include VAT?
The marked-up price must be the one the page displays to the visitor. On a consumer site in France, that is the price including VAT, since French regulations require that price to be shown to consumers. On a B2B site that displays prices excluding VAT, mark up the price excluding VAT. What matters is that the markup, the page and, if you have one, the Merchant Center feed are identical.
What is the risk if the markup does not match the page?
If the markup does not match the page, Google may first ignore the structured data and not show any rich result. In case of abuse, it can apply a manual action for a structured data issue, reported in Search Console. This removes the eligibility of the affected pages for rich results without changing their ranking. It is lifted after the issue is fixed and a review request is submitted.
Should the markup contain all the text on the page?
No, the markup does not need to repeat all the text on the page. It describes the key information the page presents: name, price, author, dates, displayed questions and answers. The rule works the other way round: everything that is marked up must be visible and accurate. Google does, however, ask you to mark up all items of the same series visible on the page, for example every review displayed.
Resources
- Google Search Central: General structured data guidelinesdevelopers.google.com
- Google Search Central: Review snippet guidelinesdevelopers.google.com
- Search Console Help: Manual actions reportsupport.google.com
- Google Search Central: Generate structured data with JavaScriptdevelopers.google.com
- Shopify: structured_data Liquid filtershopify.dev
Updated on
Topic checklist (PDF)