WooCommerce
How to add GTIN to WooCommerce products
Where to enter a GTIN in WooCommerce, why a wrong one is worse than none, and how to make sure it reaches the schema and feed.
By ShopToAI Team · Updated Jul 21, 2026
A GTIN is the barcode number that identifies a product globally: a UPC, EAN or ISBN. AI shopping assistants and Google use it to match your listing to the exact product a shopper means, and to trust that two stores are selling the same thing. Missing or wrong GTINs are one of the most common reasons a WooCommerce product gets skipped. Here is how to add them properly.
First, find the real GTIN
The GTIN comes from the manufacturer or the product packaging, not from you. It is the number under the barcode. Never invent, guess or reuse one from a similar product, because a wrong GTIN is worse than none: it tells the assistant you are selling something you are not.
Some products genuinely have no GTIN: custom, handmade or your own private-label goods. That is fine. Leave it empty and lean on a strong brand plus a clear, specific title instead.
Where to put it in WooCommerce
WooCommerce added a native GTIN field. On the product edit screen, open the Inventory tab and fill the GTIN, UPC, EAN or ISBN field with the number from the packaging. For variable products, each variation can carry its own identifier, because a size or colour variant often has its own barcode.
If your version predates the native field, a well-maintained SEO or product plugin can add one, but avoid stacking several plugins that each try to own the identifier.
Make sure it reaches the assistant
Entering the GTIN is only half the job. It has to appear in two places a machine reads: the Product structured data (JSON-LD) on the page, as a `gtin` property, and your product feed. If the field is filled in the admin but never emitted in the schema or the feed, an assistant still cannot see it.
Where we fit
shoptoai checks every product for a valid identifier, writes it into a single correct Product block and into the feed, and flags the products that genuinely lack one so you can decide what to do. See your gaps with a free audit, read why identifiers matter, or the WooCommerce structured data checklist.
Common questions
What if my product has no GTIN?
Custom, handmade and private-label products often have none, and that is fine. Leave the field empty and rely on a clear brand and a specific title. Never invent a GTIN, because a wrong one is worse than a missing one.
I filled the GTIN field but nothing changed. Why?
The value also has to be emitted in the Product JSON-LD and in your product feed. If it lives only in the admin and never reaches the schema or feed, assistants and Google cannot read it.