Sub topic 13
Keeping Product Feeds Aligned with the Site
Assume you understand basic HTML and JSON, how an e-commerce site serves pages, and how crawlers retrieve content. This chapter focuses on the connection between a product feed and the product pages that customers and search engines see.
A product feed is a structured file or API response that sends product information to a merchant platform, such as Google Merchant Center or a marketplace. It may contain a product ID, title, URL, image, price, currency, availability, brand, and condition.
The feed is another published representation of the same product. It is not an independent catalog. If the feed says that a product costs EUR 89 but the product page says EUR 99, the platform has conflicting facts to evaluate.
Use one product record as the source
Store each product fact in one authoritative product record. Generate all of these outputs from that record:
- The visible product page.
- Product JSON-LD.
- The merchant feed.
- Internal search results.
- Product listings and category pages.
- Availability and price notifications.
Use a stable identifier for each product or variant. A SKU or merchant-defined item ID should remain unchanged while the same item remains in your catalog. Do not create a new ID each time the price changes.
| Fact | Site page | Product feed |
|---|---|---|
| Product ID | Variant SKU | The same SKU |
| Price | Visible current price | Current numeric price and currency |
| Availability | Stock message and purchase control | Matching availability value |
| URL | Canonical product URL | The same canonical URL |
| Image | Main product image | The same current image URL |
Match identifiers and variants
A product with multiple sizes or colors often has two levels of identity:
- A parent product, such as “Trail Runner 2”.
- A purchasable variant, such as “Trail Runner 2, black, size 42”.
If the feed advertises variant-level prices or stock, each item needs a variant-level ID. The feed URL should open a page that selects, or clearly describes, that variant. Sending every variant to the same unselected URL can make the feed disagree with the page.
Keep these values synchronized:
idor SKU.- Product title and variant attributes.
- Price and currency.
availability.link.image_link.- Sale price and its effective dates.
- Country and language targeting.
Handle timing and changes
A feed should update soon after a meaningful change. Price and stock changes usually need a shorter update interval than descriptive changes. Use an API or frequent scheduled generation when inventory changes often.
A common failure occurs when the feed reads fresh database data but the page is still served from an old cache. Invalidate the relevant page, JSON-LD, feed entry, and CDN object as one change. Otherwise, a merchant platform may fetch the feed and then reject it when it checks the landing page.
Retire products safely
For a temporary stockout, keep the product URL if the item is expected to return. Mark the feed item as unavailable and show the same status on the page.
For a discontinued product:
- Stop advertising it as available.
- Remove or update the feed item according to the platform's rules.
- Keep the URL when it has useful history or replacement guidance.
- Redirect only when a genuine replacement exists.
- Remove structured data that claims an active offer.
Monitor drift
Validate feeds before publishing them. Check that every feed URL returns the expected page, every price has a valid currency, every ID is unique, and every advertised item has matching visible availability. Sample feed items automatically and compare their values with the rendered page.
Exercise
The feed reports SKU TR2-BLK-42 as in stock at EUR 89, but its page shows EUR 99 and “out of stock.” Which system should you update first?
Show answer
Update the shared product record, then regenerate the page and feed from it. Do not correct only the feed, because the two outputs would drift again.