# Sync prices and stock across site, feeds and markup

- Check 20.24 · E-commerce SEO · Critical
- Source: https://checklist-seo-geo.com/en/e-commerce-seo/sync-prices-stock-across-site-feeds-markup
- Keep prices and stock identical on the page, in Product markup and in Google and Microsoft feeds: single source, caches, automatic updates, audit.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/e-commerce-seo/sync-prices-stock-across-site-feeds-markup.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

The same price exists in three places: displayed on the product page, written in the `Product` markup, sent in the Merchant Center feed. So does availability. The task is to have these three values produced by the same source, at the same moment, then to check regularly that they match. Once the task is done, Merchant Center no longer reports any price or availability mismatch, and a price change spreads everywhere within a few minutes or a few hours depending on the channel.

## Why it matters

Googlebot compares the feed price with the price on the page and in its markup. According to Merchant Center Help, the prices in the HTML must match the ones sent exactly; a mismatch can lead to the disapproval of the products concerned and, if it recurs, to the suspension of the account. A price or availability mismatch also triggers pre-emptive disapprovals, lifted only after a new review.

Mismatches almost always have a mundane technical cause:

| Cause | Symptom |
|---|---|
| Price added with JavaScript after loading | The HTML Googlebot receives has no price, or a default price |
| Cached page or fragment | Old price served hours after the change |
| Feed generated once a day | Sale launched at 9 a.m., feed updated the next day |
| Price excluding tax in the feed, including tax on the page | A systematic 20% gap |
| Currency or price adapted to the visitor's geolocation | Googlebot sees one currency, the feed states another |
| Sale with a different end date | Time zone or end time not aligned |
| Stock updated by an ERP without notifying the site | Availability right in the feed, wrong on the page, or the other way round |

On the AI assistant side, a wrong price or availability repeated in a shopping answer costs a sale and the customer's trust. No setting guarantees that an assistant will show the right value, but consistent sources reduce the risk.

## What it improves

- **Approved products**: fewer disapprovals for price and availability mismatches.
- **Merchant Center account health**: less risk of a warning and a suspension.
- **Accuracy on Shopping, in rich results and in AI answers.**
- **Customer experience**: the price seen in Google is the price in the cart.
- **Organic rankings**: no direct effect.

## How to check

**1. Look at Merchant Center's signals.** In the `Needs attention` tab of `Products`, filter on price and availability mismatches, and note the number of pre-emptive disapprovals.

**2. Audit a sample.** For 50 products picked at random from your TSV feed, this script compares the feed's price and availability with those in the page markup. Save it as `audit_flux.py`:

```python
import csv
import json
import random
import re
import sys
import urllib.request

FEED_URL = "https://example.com/feeds/google-merchant.tsv"
SAMPLE_SIZE = 50
AVAILABILITY = {"in_stock": "InStock", "out_of_stock": "OutOfStock", "preorder": "PreOrder", "backorder": "BackOrder"}


def fetch(url):
    request = urllib.request.Request(url, headers={"User-Agent": "audit-flux/1.0"})
    with urllib.request.urlopen(request, timeout=20) as response:
        return response.read().decode("utf-8", errors="replace")


def offers_in(node):
    if isinstance(node, list):
        for item in node:
            yield from offers_in(item)
    elif isinstance(node, dict):
        if node.get("@type") == "Offer":
            yield node
        for value in node.values():
            yield from offers_in(value)


rows = list(csv.DictReader(fetch(FEED_URL).splitlines(), delimiter="\t"))
problems = 0

for row in random.sample(rows, min(SAMPLE_SIZE, len(rows))):
    html = fetch(row["link"])
    blocks = re.findall(r'<script[^>]+application/ld\+json[^>]*>(.*?)</script>', html, re.S)
    offers = []
    for block in blocks:
        try:
            offers.extend(offers_in(json.loads(block)))
        except json.JSONDecodeError:
            print(f"{row['id']}\tunreadable JSON-LD\t{row['link']}")

    feed_price = float((row.get("sale_price") or row["price"]).split()[0])
    feed_availability = AVAILABILITY.get(row["availability"], row["availability"])

    match = any(
        float(offer.get("price", -1)) == feed_price
        and str(offer.get("availability", "")).endswith(feed_availability)
        for offer in offers
    )

    if not match:
        problems += 1
        found = [(offer.get("price"), offer.get("availability")) for offer in offers]
        print(f"{row['id']}\tfeed: {feed_price} {feed_availability}\tpage: {found}\t{row['link']}")

print(f"{problems} mismatch(es) out of {min(SAMPLE_SIZE, len(rows))} products checked.", file=sys.stderr)
```

Run it with `python3 audit_flux.py`. The script only reads the `Offer` price (`price`): if your markup puts the active price in `priceSpecification`, adapt the comparison. Each line printed is a mismatch to explain.

**3. Test the rendering Google sees.** For two or three products, the URL Inspection tool in Search Console (“Test live URL”, then “View tested page”) shows whether the price is present in the rendered HTML.

Compliant result: zero mismatches in the sample, no mismatch disapprovals in Merchant Center.

## How to implement

### Before you start

**A single source of truth.** Designate the system that is authoritative for price and stock: the store database, a PIM (Product Information Management system) or the ERP. Page, markup and feed read this source, never a copy.

**Choose the frequency of each channel:**

| Channel | Method | Typical update delay |
|---|---|---|
| Page and markup | Server rendering + cache purge on every change | Immediate to a few minutes |
| Google, stable catalog | File with scheduled fetch | Daily |
| Google, prices or stock that change several times a day | Merchant API called on every change | A few minutes |
| Google, safety net | Merchant Center automatic item updates | Variable, not guaranteed |
| Microsoft | Google import, scheduled file or Content API | Depends on the method |
| Bing | IndexNow on every page change | Immediate signal |

**Turn on Google's safety net.** In Merchant Center, `Products`, `Automations` tab: automatic item updates for price, availability and condition take the values read on the page when they differ from the feed. They are on by default. For availability, choose between always updating and updating only when the site shows the product as out of stock. Google states that they do not replace an up-to-date feed, that they work poorly for values that change more than once a day, and advises against automatic price updates if a page displays several strikethrough prices.

**Render the price on the server.** The price and availability must be present in the initial HTML and in the JSON-LD, not only after JavaScript has run. See [implement Product, ProductGroup and Offer](https://checklist-seo-geo.com/en/e-commerce-seo/implement-product-productgroup-offer).

**One URL per currency.** If you sell in several currencies, each currency has its own URL and its own feed or target country. Do not convert the price according to the visitor's IP address on a single URL.

**Prepare your sales.** Send `sale_price` and `sale_price_effective_date` in the feed with the same dates and time zone as the site, and update the markup (`priceValidUntil`) at the same time.

### WordPress

Versions: WordPress 6.8 and later (including 7.x), WooCommerce 10 and 11, Google for WooCommerce 3.8 and later.

With WooCommerce and Google for WooCommerce, syncing to Merchant Center follows product changes. The weak point is the page cache:

- **WP Rocket, LiteSpeed Cache, W3 Total Cache**: check that editing a product purges its page, and that going out of stock because of an order purges it too. If in doubt, shorten the cache lifetime of product pages.
- **Stock managed by an ERP**: updates must go through the WooCommerce REST API (`PUT /wp-json/wc/v3/products/{id}`), which triggers the purge hooks, not through a direct SQL query.
- **Price fragments loaded with AJAX**: some themes load the price afterwards. Check that it is in the initial HTML.

### Shopify

Versions: Shopify admin, Google & YouTube app and Shopify Markets, all plans, November 2026.

Shopify serves up-to-date prices and stock with no cache to manage, and the Google & YouTube app syncs the catalog. Watch out for dynamic pricing or currency conversion apps that change the price with JavaScript, and for review or SEO apps that add a second markup block with a frozen price. With Shopify Markets, check that each market has its own currency and URLs.

### PrestaShop

Versions: PrestaShop 8 and 9.

The Smarty cache and any page cache must be invalidated when stock is updated. A feed module that regenerates the file through a cron job must run at least as often as your price changes. Check that specific prices (catalog price rules, customer group prices) are exported as they appear to a visitor who is not logged in.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4.

The full page cache (Varnish or the built-in cache) invalidates a product's pages through their cache tags when the product is saved. Check that imported stock updates (file, API, ERP) do trigger reindexing and invalidation: `bin/magento indexer:status` should show up-to-date indexes. Catalog prices scheduled by price rules depend on cron-based indexing: a stopped cron freezes prices.

### Cloudflare

Versions: Cloudflare dashboard and API v4, all plans, November 2026.

If product pages are cached at the edge (an “Eligible for cache” rule on HTML), purge the product URL through the API on every price or stock change:

```bash
curl -X POST "https://api.cloudflare.com/client/v4/zones/ZONE_ID/purge_cache" \
  -H "Authorization: Bearer API_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"files":["https://example.com/produits/the-vert-sencha-100g/"]}'
```

Without automatic purging, limit the cache duration of product page HTML in the [cache rules](https://dash.cloudflare.com/?to=/:account/:zone/caching/cache-rules).

### Laravel

Versions: Laravel 11 to 13.

Trigger the sync from an observer, attached to the model with the `#[ObservedBy(ProductObserver::class)]` attribute on the `Product` class:

```php
use Illuminate\Support\Facades\Cache;

class ProductObserver
{
    public function updated(Product $product): void
    {
        if (! $product->wasChanged(['price', 'sale_price', 'stock'])) {
            return;
        }

        Cache::forget("product-page:{$product->id}");

        PushProductToMerchantApi::dispatch($product);
        NotifyIndexNow::dispatch(route('products.show', $product));
    }
}
```

The `PushProductToMerchantApi` job sends the product to Google's Merchant API; `NotifyIndexNow` reports the changed URL. The file feed, if there is one, is regenerated by a scheduled command. See [notify compatible search engines via IndexNow](https://checklist-seo-geo.com/en/freshness-accuracy/notify-compatible-search-engines-via-indexnow).

### Next.js

Versions: Next.js 15 and 16 (App Router).

Render the price and the JSON-LD in a server component. For a static or cached page, invalidate it from the route handler that receives your stock system's webhook, in the same function that calls the Merchant API: `revalidatePath('/produits/the-vert-sencha-100g')` for the URL, or `revalidateTag` for tagged data. Do not load the price on the client with a `useEffect`.

#### Next.js 16

`revalidateTag` requires a second argument; the single-argument form is deprecated. From a webhook, pass `{ expire: 0 }` so that the next request, from a visitor or from Google's crawler, receives the new price:

```ts
revalidateTag(`product-${id}`, { expire: 0 })
```

The `'max'` profile, recommended by default, still serves the old content during revalidation: it is not suitable for a price. `updateTag` is only available in a Server Action, not in a route handler.

#### Next.js 15

`revalidateTag` takes a single argument and immediately expires the tagged data:

```ts
revalidateTag(`product-${id}`)
```

## Common mistakes

- **Fixing the feed by hand** in Merchant Center or with a feed rule, instead of the source: the mismatch comes back.
- **Relying on Google's automatic item updates** as the only sync.
- **Purging only the page** and forgetting the cache of a fragment, a CDN or an intermediate API.
- **Exporting the price for a logged-in customer** (business price, member price) instead of the public price.
- **Launching a sale at midnight with a feed that runs at 6 a.m.**: six hours of mismatch.
- **Forgetting Microsoft**: a Microsoft catalog fed by a frozen file stays wrong, then expires.

## Frequently asked questions

### Why does Merchant Center report a price mismatch when the price on my site is right?

Most often, Googlebot did not see the same page as you: price added with JavaScript after loading, page served from an old cache, price converted according to the visitor's country, or a sale that ended at a different time in the feed. Check the crawled HTML with the URL Inspection tool in Search Console and compare it with the price in the feed and the markup.

### Are Merchant Center's automatic item updates enough?

No. They take the price, availability and condition read on your pages when the feed differs, which limits disapprovals, but Google states that they do not replace up-to-date product data. They work poorly for values that change more than once a day and can be suspended if there are too many mismatches. Keep them as a safety net.

### How often should a product feed be updated?

At least as often as your prices and stock change. A file fetched once a day is enough for a stable catalog. If prices or stock move several times a day, for example during a sale or with limited stock, send the changes through the Merchant API as they happen, and purge the cache of the affected pages at the same time.

## Resources

- [Merchant Center Help: Automatic item updates](https://support.google.com/merchants/answer/3246284?hl=en)
- [Merchant Center Help: Price mismatch](https://support.google.com/merchants/answer/6098334?hl=en)
- [Google for Developers: Merchant API](https://developers.google.com/merchant/api/overview)
- [Google Search Central: Merchant listing structured data](https://developers.google.com/search/docs/appearance/structured-data/merchant-listing?hl=en)
- [Cloudflare: Purge by single-file](https://developers.cloudflare.com/cache/how-to/purge-cache/purge-by-single-file/)
- [Bing Webmaster Blog: IndexNow for Shopping updates](https://blogs.bing.com/webmaster/May-2025/IndexNow-Enables-Faster-and-More-Reliable-Updates-for-Shopping-and-Ads)

Next steps: [monitor feed errors](https://checklist-seo-geo.com/en/e-commerce-seo/monitor-feed-errors), [manage temporarily out-of-stock products](https://checklist-seo-geo.com/en/e-commerce-seo/manage-temporarily-out-stock-products) and [update prices, stock and opening hours](https://checklist-seo-geo.com/en/freshness-accuracy/update-prices-stock-opening-hours).
