Check B3.5 · SKU present and unique in sample

Give every product and variant its own SKU

Why a unique SKU lets AI agents and feeds refer to exactly one product in your store, how the scanner reads sku and productID, and how to fix missing or duplicate SKUs.

By · Updated · Markdown

Check 5 of 5 in Product identity · 70 of 87 overall
Priority
Expected Weight 2. Expected of a well-run store and counted in the section score.
Readiness level
Not a level gate. It counts toward its section score.
The question
Does every sampled product have a SKU, and are they distinct?
On this page

In short

A SKU (stock keeping unit) is your own code for one product or variant. It is how an agent, a feed or an order refers to exactly that item in your store. This check reads the SKU of each sampled product and passes when every one has a SKU and no two share it.

What this check looks at

A GTIN identifies a product across the whole market. A SKU identifies it in your shop. You choose the format, for example MUG-BLUE-350. What matters is that each sellable item has one, and that it never points at two items.

On a product page, the SKU sits in the Product JSON-LD as sku. For a product with variants, the SKU usually sits on each variant under hasVariant, and the scanner reads it there. Meta's on-page product markup uses productID for the same purpose, so the scanner accepts that when sku is absent. On WooCommerce it falls back to the sku field of the Store API, the public product API WooCommerce ships with.

Why it matters for AI agents

An agent that adds a product to a cart, checks stock or reports an order needs a stable handle for the item. Names change. URLs change. The SKU stays. Product feeds and catalog integrations commonly use it as the item's ID, so a missing SKU leaves the item without a stable reference.

Duplicates are worse. If two products share a SKU, any system that uses it as a key may merge them, overwrite one with the other, or show the wrong price or stock. An agent that asks for MUG-BLUE-350 should get one answer.

This check carries weight 2, which means expected. It is not a level gate, but SKU problems tend to surface as hard-to-debug errors in feeds and integrations.

How the scanner decides

The scanner samples a few product pages (two by default) and reads each one that answers. For each product it looks for sku on the Product and its variants first, then productID, then the WooCommerce Store API sku for the same URL. The evidence records which field supplied the value.

  • Pass: every sampled product has a SKU and no two sampled products share one. The message notes how many came from productID.
  • Warn: every product has a SKU, but at least two sampled products share the same one.
  • Fail: at least one sampled product has neither sku nor productID, and no Store API SKU either.
  • Skip: no product page was sampled, or none could be read.

Uniqueness is checked within the sample only. A pass does not prove that your whole catalog is free of duplicates. It shows that the pages the scanner saw are in order.

How to fix it

Decide on a SKU scheme, assign a SKU to every product and every variant, and expose it in the structured data.

WordPress and WooCommerce

  • Fill the SKU field under Product data, Inventory, on every simple product.
  • For variable products, open each variation and give it its own SKU. The parent can have one too.
  • WooCommerce refuses to save a SKU that another product already uses, so duplicates usually come from imports or direct database edits. Run a search in the product list to find them.
  • WooCommerce's own structured data and the Store API both pick up the SKU field. If an SEO plugin replaces the Product markup, confirm it still outputs sku.

Shopify

  • Each variant has a SKU field under Inventory. Fill it for every variant.
  • Shopify does not require SKUs to be unique, so duplicates can slip in through copied products or imports. Export your products to CSV and sort by the Variant SKU column to find them.
  • Most themes output the variant SKU in the product structured data. View the page source and search for "sku" to confirm.

Any other stack

  • Make SKU a required, unique field at the database level.
  • Emit sku on each Product node and on each variant node in the JSON-LD.
  • If you use Meta's markup with productID, keep it identical to your SKU so every system sees the same ID.

Verify it yourself

List the SKUs on a product page:

curl -s https://example.com/product/blue-mug/ | grep -oE '"(sku|productID)"\s*:\s*"[^"]*"'

On WooCommerce, list SKUs from the Store API and look for repeats:

curl -s "https://example.com/wp-json/wc/store/v1/products?per_page=100" | grep -oE '"sku":"[^"]*"' | sort | uniq -d

The second command prints nothing when the first hundred products have distinct SKUs. Rescan with this scanner after the change.

Common mistakes

  • SKU on the parent only. Variants that share the parent's SKU are indistinguishable to a system that keys on it.
  • Copying a product and keeping its SKU. Duplicated products are the most common source of duplicate SKUs.
  • Using the GTIN as the SKU everywhere. It can work, but products without a GTIN then have no SKU at all.
  • Empty SKU in markup. "sku": "" counts as missing.

FAQ

What is the difference between SKU, GTIN and MPN?

The SKU is your own code for an item in your shop. The GTIN is the global barcode number. The MPN is the manufacturer's part number. A product can have all three, and each serves a different system.

Does a SKU have to follow a format?

No. Any text works, as long as it is unique per product and variant and does not change. Short, readable codes without spaces are easiest to handle.

Why does the scanner accept productID?

Meta's on-page product markup uses productID for the item's ID. A store that follows that guidance has an ID, so the scanner counts it when sku is missing.

My SKUs are unique but the check warns. Why?

Two sampled pages may show the same product, for example under two URLs, or a product and its variant may carry the same SKU on separate pages. The evidence lists the shared SKU and both URLs.

The fix in one step

Give every product and variation a unique SKU and expose it in markup and the product API.

By platform

WooCommerce
Fill the SKU field on each product and variation. WooCommerce refuses duplicate SKUs on save, and the Store API and structured data pick the field up.
Shopify
Fill the SKU field of each variant. Shopify does not enforce uniqueness, so look for duplicates in a product export.
Prompt for a coding agent

Some sampled products on this store have no SKU (the store's own product code) in their Product JSON-LD, as sku or productID, or two sampled products share one. Assign a unique SKU to every product and every variant, find and resolve duplicates (copied products and imports are the usual source), and emit it as sku on each Product and variant node of the JSON-LD and in the product API or feed. Verify with `curl -s <product-url> | grep -oE '"(sku|productID)"\s*:\s*"[^"]*"'` on a few product pages.

Sources and specifications

See how your store does

One scan runs every check in this knowledge base against your site and ends with a prioritised fix list.

Scan a store