Skip to content
Product data

Keep your schema price identical to the price on the page

· 4 min read
Short answer

Generate offers.price from the same value your template prints, so the number in JSON-LD (for example 24.00) also appears in the visible text of the product page.

Why it matters

Google’s structured data guidelines say your markup must be a true representation of the page content, that you should not mark up content that is not visible to readers, and that you must not use structured data to mislead. Structured data issues can lead to a manual action, which removes rich result eligibility for the affected pages.

Google also says it may attempt to verify merchant listing product data before showing it. When the markup says one price and the page says another, the system has to decide which to trust, and an agent quoting the markup price to a shopper may quote a number the checkout will not honor.

When we check your store, we take every price, lowPrice and highPrice from the product page’s Offer and AggregateOffer nodes and look for each number in the page’s visible text, allowing common formats such as 24, 24.00, 1,234.50 and 24,00. Price matches the page passes if at least one of them appears, fails if none does, and is not applicable when the markup has no price at all.

How to fix it

  1. Compare the two numbers on one product

    View the page source, find "price" inside the JSON-LD, then look at the price shown near the buy button. They should be the same amount in the same currency.

  2. Read both from the same field

    Most mismatches come from markup that reads a different field from the one the template prints: list price instead of sale price, price without tax while the page shows price with tax, or a default variant that is not the one displayed. Point the markup at the exact variable the visible price uses.

    HTML
    <p class="price">$24.00</p>
    
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Product",
      "name": "Canvas tote bag, natural",
      "image": ["https://www.example.com/images/tote-natural.jpg"],
      "offers": {
        "@type": "Offer",
        "price": 24.00,
        "priceCurrency": "USD",
        "availability": "https://schema.org/InStock"
      }
    }
    </script>

  3. Render the price in the HTML, not only after scripts run

    If the visible price is filled in by JavaScript after load, a crawler that reads the first HTML response sees markup with a price and a page without one. Render the default variant’s price on the server, in the same response as the JSON-LD.

  4. Handle sales and variants deliberately

    During a sale, price is the sale price the shopper pays. If the page lets shoppers switch variants with different prices, the markup for the default variant should match the price shown on first load, and each variant Offer should match what the page shows when that variant is selected.

How to verify

  • Run Citeto’s free check. Price matches the page shows Passed when a markup price appears in the page text.

  • Open the URL in Google’s Rich Results Test, switch to the rendered HTML view and confirm the price text is there alongside the markup.

  • Repeat the comparison on one discounted product and one product with variants, since those are where the two values most often drift apart.

Common pitfalls

  • Showing prices only as an image or inside a canvas element. The number is not in the text, so no parser can match it.

  • Rounding in one place but not the other, for example 24.99 in markup and “$25” on the page.

  • Markup that keeps the old price after a sale ends because the page is cached longer than the sale lasts.

  • A geo or currency switcher that changes the visible price but leaves the markup in the default currency.

FAQ

No. The amount is the same. Our check accepts 24, 24.00 and other common formats of the same number.

No. Google’s guidelines say not to mark up content that readers of the page cannot see. Mark up the price an anonymous visitor sees.

Sources

  1. [1]Google Search Central: General structured data guidelinesdevelopers.google.com
  2. [2]Google Search Central: Merchant listing structured datadevelopers.google.com
  3. [3]schema.org: Offerschema.org
Keep your schema price identical to the price on the page