- Priority
- Blocking Weight 3. Gates a readiness level or carries the most weight in its section. Fix these first.
- Readiness level
- One of 2 alternatives for Level 4 (Identifiable products). B3.4 can satisfy it instead.
- The question
- Do sampled products carry a GTIN?
On this page
In short
A GTIN (Global Trade Item Number) is the barcode number that identifies one exact product everywhere it is sold. AI agents and merchant programmes use it to match your offer to the product a shopper asked for and to compare it with other stores. This check reads the GTINs in your product markup and passes when at least 80 percent of sampled products carry one.
What this check looks at
GTINs are issued through GS1, the organisation that runs the barcode system. You know them under their older names: UPC in North America (12 digits), EAN in most other countries (13 digits), JAN in Japan, ISBN for books (13 digits) and ITF-14 for cases and multipacks (14 digits). EAN-8 is a short 8-digit form for small packages.
On a product page the GTIN sits in the Product JSON-LD, the block of structured data that describes the product to machines. schema.org defines a generic gtin property and length-specific ones:
| Property | Typical source |
|---|---|
gtin8 | EAN-8 |
gtin12 | UPC-A |
gtin13 | EAN-13, JAN, ISBN-13 |
gtin14 | ITF-14 |
gtin | any of the above |
The scanner reads all five, on the Product itself and on the variants listed under hasVariant. A product sold in sizes or colours often carries the GTIN only on each variant, and that counts. On WooCommerce it also reads global_unique_id from the Store API, the public product API WooCommerce ships with, when the page markup has no GTIN.
Why it matters for AI agents
An agent that compares offers needs to know that your "Blue Ceramic Mug 350 ml" is the same item another store calls "Mug, blue, 0.35 l". Product names, photos and descriptions differ from shop to shop. The GTIN does not. It is the key that lets a system group offers, show your price next to others and pick yours.
Google Merchant Center recommends a GTIN for every product that has one assigned by the manufacturer. Product identifiers help Google understand what you sell, and the same logic applies to any agent that reads a catalog. A product without an identifier can still be found by name, but it is harder to match with confidence.
Not every product has a GTIN. Handmade goods, made-to-order items and many private-label products were never given one. Google documents brand plus MPN (manufacturer part number) as the identifier for those. The scanner respects that, and the MPN fallback check covers it in detail.
This check carries weight 3, which means blocking: it is among the first things to fix. It is also part of the Level 4 gate, "Identifiable products". That part of the gate is satisfied when either this check or the MPN fallback check passes.
How the scanner decides
The scanner samples a few product pages (two by default) and reads each one that answers. For every sampled product it collects the values in gtin, gtin8, gtin12, gtin13 and gtin14, from the Product and its variants. A value counts only when it has 8, 12, 13 or 14 digits after spaces and hyphens are removed. A value like FG006780 in a gtin field is recorded as invalid format and does not count. If the markup has no GTIN, the WooCommerce Store API value global_unique_id is used.
- Pass: at least 80 percent of sampled products carry a GTIN.
- Warn: more than 50 percent but fewer than 80 percent carry one. It also warns at 50 percent or below when every product without a GTIN carries both
brandandmpn, Google's documented alternative. - Fail: 50 percent or fewer carry a GTIN, and at least one product without a GTIN also lacks brand plus MPN.
- Skip: no product page was sampled, or none could be read.
The evidence lists every sampled product, where its GTIN came from, how many came from variants, and any value that was not counted because of its length. Whether the digits are a real GTIN is a separate question that the GTIN validity check answers.
How to fix it
Get the GTINs from the manufacturer or your supplier's product data. If you are the brand owner, you license them from GS1 in your country. Do not invent them. Google states plainly that you should not guess or make up a value.
WordPress and WooCommerce
- Open a product, go to Product data, Inventory, and fill the field labelled GTIN, UPC, EAN or ISBN. Recent WooCommerce versions include it as a core field.
- For a variable product, open each variation and fill the same field there. Each size or colour has its own GTIN.
- The core field feeds the Store API as
global_unique_id. Check that your structured data emits it too. If an SEO or feed plugin outputs its own Product markup, make sure it reads the core field rather than a separate custom field. - For large catalogs, use the built-in CSV product importer and map your GTIN column to the core field.
Shopify
- Open a product and fill the Barcode (ISBN, UPC, GTIN, etc.) field on every variant.
- Many current themes output the barcode as a GTIN property in the product structured data. Older or custom themes may not. View the page source and search for
gtinto confirm. - If your theme leaves it out, add it to the product JSON-LD in the theme's product section, reading
variant.barcodefor each variant. - Note that the scanner reads only the page markup on Shopify. The WooCommerce Store API fallback does not apply.
Any other stack
- Store the GTIN in a dedicated field per sellable variant, not in a free-text attribute or the description.
- Emit it in the Product JSON-LD with the property that matches its length, for example
gtin13for an EAN-13. The genericgtinproperty is also accepted. - Keep the value as text, not as a number, so leading zeros survive.
Verify it yourself
Fetch a product page and look for GTIN properties in the raw HTML:
curl -s https://example.com/product/blue-mug/ | grep -oE '"gtin(8|12|13|14)?"\s*:\s*"[^"]*"'
On WooCommerce, check the Store API value too:
curl -s "https://example.com/wp-json/wc/store/v1/products?per_page=5" | grep -oE '"global_unique_id":"[^"]*"'
Google's Rich Results Test shows the parsed Product with its identifiers. Rescan with this scanner after the change.
Common mistakes
- Putting an internal code in the GTIN field. A SKU (your own product code) like
MUG-BLUE-350is not a GTIN. The scanner does not count it, and channels reject it. - Filling the parent product only. For variable products, each variant needs its own GTIN.
- Storing the GTIN as a number. Spreadsheets and some importers drop leading zeros, which changes the length. A 12-digit UPC that loses its zero has 11 digits and no longer counts.
- Reusing one GTIN across different products. Every distinct item and variant has its own number.
- Making numbers up to pass the check. Invented GTINs fail the GTIN validity check or, worse, belong to someone else's product.
FAQ
Do I need a GTIN for handmade or private-label products?
No. Products that were never assigned a GTIN do not need one. Give them a brand and an MPN instead. The scanner warns rather than fails when every product without a GTIN carries both.
Which schema.org property should I use, gtin or gtin13?
Either works. The length-specific properties such as gtin13 say exactly which format the number is in. The generic gtin property accepts any of the formats. The scanner reads all of them.
Where do I get GTINs for my own brand?
From GS1, through the member organisation in your country. You license a company prefix and assign numbers to your products from it.
Why does the check pass at 80 percent and not 100?
Most catalogs have some items that legitimately have no GTIN, such as bundles, custom work or gift cards. The threshold accepts that while still requiring identifiers on most of the catalog.
Does a passing GTIN check mean agents will sell my products?
No. It shows that sampled products carry an identifier an agent can match on. Whether an agent recommends or buys depends on many other things, including price, availability, policies and the agent itself.
The fix in one step
Enter a GTIN for every product and variant that has one, in the field the platform exposes to both its structured data and its API.
By platform
- WooCommerce
- Use the GTIN, UPC, EAN or ISBN field in the product inventory tab, which feeds the Store API and the JSON-LD, and verify it is emitted as global_unique_id by the Store API.
- Shopify
- Use the Barcode field of each variant, which the theme's structured data and the product feeds read.
Prompt for a coding agent
Fewer than 80 percent of the sampled products on this store carry a GTIN (the global barcode number: UPC, EAN, JAN, ISBN or ITF-14) in their Product JSON-LD, and some products without one may also lack brand plus MPN. Populate the GTIN for every product and variant that has one, from the manufacturer or supplier data, in the platform's dedicated identifier field rather than a free-text attribute. Never invent a value. Store it as text so leading zeros survive, and emit it in the Product JSON-LD as gtin13 (or gtin8, gtin12, gtin14, or the generic gtin), on each variant of a ProductGroup. A value counts only with 8, 12, 13 or 14 digits. For products that were never assigned a GTIN, set brand and mpn instead. Verify with `curl -s <product-url> | grep -oE '"gtin(8|12|13|14)?"\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.