The WooCommerce GTIN field: where it is and how to use it
In short: Since WooCommerce 9.2, every product and variation has a built-in "GTIN, UPC, EAN or ISBN" field in the Inventory tab. Fill it with the manufacturer's real barcode, per variation. Leave it empty for own-brand or handmade items. Google and OpenAI's feed both use it to match your product; a wrong or invented number is worse than none.
Where the field is
WooCommerce 9.2 added a field called global_unique_id, shown as "GTIN, UPC, EAN or ISBN" (WooCommerce developer blog, checked 4 Nov 2026).
- Open a product in Products → Edit.
- In Product data, click the Inventory tab.
- Find the GTIN, UPC, EAN or ISBN field in that tab.
- For a variable product, open Variations, expand each variation, and fill its own field.
Facts about the field worth knowing:
| Fact | What it means for you |
|---|---|
| It must be unique across all products | You can't paste one barcode on two products, or on a parent and its variation |
| It accepts any text | WooCommerce won't stop a typo or a wrong length; you must check |
| It exists on products and variations | Each size or colour with its own barcode needs its own value |
CSV import header: meta:_global_unique_id | Bulk import works (per a WooCommerce reply on the 9.2 post) |
| Google for WooCommerce uses it | It's the recommended GTIN source for syncing to Merchant Center (WooCommerce) |
What a GTIN is, and which products have one
A GTIN is the number under a barcode, assigned by the brand owner through GS1. Google accepts UPC (12 digits, North America), EAN (13, Europe), JAN (8 or 13, Japan), ISBN (13, books) and ITF-14 (14, multipacks). It asks you to convert UPC-E (8 digits) to 12 and ISBN-10 to ISBN-13 (Google, checked 4 Nov 2026).
| Your product | GTIN? | What to send |
|---|---|---|
| Branded goods you resell | Yes, from the packaging or supplier | GTIN + brand |
| Your own brand, sold in shops or marketplaces | Yes, if you bought GS1 numbers | GTIN + brand |
| Own brand, never registered | No | Brand + MPN (your part number) |
| Handmade or custom | Usually no | Brand; identifier_exists = no only if sure |
| Antiques, vintage | No | identifier_exists = no |
Google: "Only provide a GTIN if you're sure it's correct." Setting identifier_exists to no when an identifier really exists gets a warning (Google).
How to check a GTIN before saving it
Every GTIN ends in a check digit, calculated from the other digits with GS1's modulo-10 method (GS1 UK):
- Remove spaces and dashes. The result must be 8, 12, 13 or 14 digits.
- Starting from the digit just left of the check digit and moving left, multiply digits alternately by 3 and 1.
- Add them up. The check digit is the amount needed to reach the next multiple of 10.
Example with a sample number: for 400638133393?, the weighted sum is 89, so the check digit is 1 (89 + 1 = 90). Our free GTIN checker does this for you.
Also reject:
- All zeros.
- Restricted prefixes such as numbers starting 02, 04 or 2 (in-store and restricted-circulation codes). Google says not to submit GTINs from restricted or coupon ranges.
Why AI shopping assistants care
- Matching. Google: "Accurate matching to products can't be assured when GTIN is missing", and products with missing or wrong GTINs "may have limited visibility".
- OpenAI's feed lists
gtinas recommended: 8, 12, 13 or 14 digits with a valid check digit, omitted if none is assigned. It also says not to invent an MPN to stand in for a missing GTIN (OpenAI, checked 4 Nov 2026). - Comparison answers. When a shopper asks "where can I buy X", an assistant has to know your X is the same product as everyone else's. The barcode is the cleanest proof.
Getting the GTIN to Google and AI
- Feed: Google for WooCommerce and most feed plugins read the built-in field. Check the mapping once.
- Product page: open a product page, view source, and search for
gtin. If it isn't in the Product JSON-LD, your theme or SEO plugin isn't printing it. - Old plugins: if you stored barcodes in a custom field or attribute before 9.2, migrate them. Google for WooCommerce 2.9.0+ offers a background migration (Action Scheduler task
migrate_gtin). Back up first.
What you can do free, without us
Everything above. For a small catalog, gather barcodes from packaging or supplier sheets, check digits with the GTIN checker, and fill the field.
What flareOps does
The flareOps store check flags every product with a missing GTIN where one is likely (resold brands), and every GTIN with a wrong length, bad check digit, all zeros or a restricted prefix. It knows when a product is your own brand and then doesn't nag you about barcodes. When you approve a GTIN you supplied, the plugin writes it into WooCommerce's built-in field, checking first that no other product already has it, and never lets a variation inherit its parent's code. It adds brand, GTIN and MPN to WooCommerce's product JSON-LD on the products it improves. flareOps never suggests or fills a GTIN itself: GTINs proposed by AI are refused. See flareOps for WooCommerce.
Related: WooCommerce + Google Merchant Center, WooCommerce in ChatGPT shopping, product schema for AI, the pillar guide GEO for ecommerce, and the free AI readiness checker.
Questions people ask
Where is the GTIN field in WooCommerce?
In the product editor, Product data → Inventory tab, labelled "GTIN, UPC, EAN or ISBN". For variable products, each variation has its own field. It needs WooCommerce 9.2 or newer.
Can two products share the same GTIN?
No. WooCommerce requires the value to be unique across all products, like a SKU. That also stops a variation from reusing the parent's barcode by accident.
My products are handmade. Do I need a GTIN?
No. Google says custom-made and private-label products often have no GTIN. Send brand and MPN if you have one, and leave the GTIN empty.
Can I make up a GTIN or use my SKU?
No. A GTIN is assigned by the brand owner through GS1. A made-up number fails the check digit or, worse, belongs to someone else's product.
How do I import GTINs in bulk?
WooCommerce's CSV importer can set the field with the column header meta:_global_unique_id, according to a WooCommerce reply on its developer blog. Test on a few products first and keep a backup.
I used a GTIN plugin before 9.2. What now?
Google for WooCommerce 2.9.0 and later offers to migrate older GTIN data into the built-in field in the background. Other plugins may need their own migration; back up first.
Does WooCommerce put the GTIN in its structured data?
Check your product page's JSON-LD to be sure: it depends on your WooCommerce version, theme and SEO plugin. The flareOps plugin adds brand, GTIN and MPN to WooCommerce's existing product JSON-LD on the products it improves.
Sources
- WooCommerce developer blog: 9.2 pre-release, global_unique_id field (checked 4 Nov 2026)
- WooCommerce docs: GTIN in Google for WooCommerce (checked 4 Nov 2026)
- Google Merchant Center Help: GTIN [gtin] (checked 4 Nov 2026)
- Google Merchant Center Help: Identifier exists [identifier_exists] (checked 4 Nov 2026)
- GS1 UK: What is a check digit? (checked 4 Nov 2026)
- OpenAI Commerce: product feed spec (checked 4 Nov 2026)
Sources checked on 4 November 2026.