WooCommerce has a built-in GTIN field. Since WooCommerce 9.2, every product has a GTIN, UPC, EAN, or ISBN field on the Inventory tab, and every variation has its own. You don’t need a plugin to store barcodes: type the number in and keep it unique across your catalog. For hundreds of products, fill the field with a CSV import. To show the number in Google Shopping, it has to reach Merchant Center in the gtin attribute of your product data, which for a WooCommerce store means your product feed.
What is a GTIN?
A GTIN (Global Trade Item Number) is the number printed under a product’s barcode. UPC, EAN, JAN, ISBN and ITF-14 are all types of GTIN, so whichever one your product carries goes in the same WooCommerce field.
| Type | Digits | Typical use |
|---|---|---|
| UPC (GTIN-12) | 12 (convert 8-digit UPC-E codes to 12 digits) | North America |
| EAN (GTIN-13) | 13 | Europe |
| JAN (GTIN-13) | 8 or 13 | Japan |
| ISBN | 13 (convert ISBN-10 to ISBN-13) | Books |
| ITF-14 (GTIN-14) | 14 | Multipacks |
Source: Google Merchant Center Help, GTIN [gtin].
Where to find yours: on the barcode, the packaging or the book cover. If you can’t find it, ask the manufacturer. Not every product has a GTIN; if yours doesn’t, see products without a GTIN.
Where WooCommerce stores the GTIN (the built-in field)
- Go to Products → All Products and edit the product.
- In the Product data box, open the Inventory tab.
- Type the barcode number into GTIN, UPC, EAN, or ISBN and save the product.
Three things to know about the field:
- It must be unique. WooCommerce treats it like a SKU: the same value can’t be used on two products.
- Duplicating a product clears it. When you duplicate a product, the copy’s GTIN is cleared, so enter the new item’s own number.
- It holds one number. For a book, use the ISBN-13. Google says that if you have both an ISBN-10 and an ISBN-13, you should include only the 13-digit number.
Variable products: one GTIN per variation
Each variation has its own GTIN, UPC, EAN, or ISBN field. Open the Variations tab, expand a variation and fill in its field. Google treats each size or colour as a separate product with its own GTIN, so a T-shirt in three sizes needs three GTINs. Fill every variation; don’t leave them empty and count on the parent product’s number.
On WooCommerce older than 9.2?
Update WooCommerce: the field arrived in version 9.2. If your GTINs already sit in another plugin’s field or in your SEO plugin, you don’t have to move them to build a feed. See how your GTIN gets to Google.
How to add GTINs, EANs or ISBNs in bulk (CSV import)
For a whole catalog, or a shelf of books, use WooCommerce’s built-in product CSV importer instead of editing products one at a time. The product CSV has a column called GTIN, UPC, EAN, or ISBN that maps to the built-in field.
- Export your products from Products → All Products → Export. The file includes the GTIN, UPC, EAN, or ISBN column.
- Fill the column: one number per row, variation rows included. Keep the ID and SKU columns: WooCommerce uses them to match each row to the product you’re updating.
- Import the file from Products → All Products → Import, select Update existing products, and on the Column mapping screen check that your GTIN column is set to GTIN, UPC, EAN, or ISBN, not Do not import. Then run the importer. Each matched product gets its GTIN.
Example for a bookshop: export the catalog, paste each title’s ISBN-13 into the GTIN column next to its SKU, and import with Update existing products.
Two tips before you import:
- Protect leading zeros. Spreadsheet apps can change formatting, so WooCommerce advises checking the saved CSV before you import it. Format the GTIN column as text, then open the saved file in a text editor and check that a number such as
0123456789012still starts with 0. - Test on a few products first. WooCommerce suggests testing an import with a small file first. Export a handful, update them, and check the result before you run the whole catalog.
Full importer steps: WooCommerce’s Product CSV Importer and Exporter guide.
How your GTIN gets to Google: through your product feed
Filling the field is half the job. Google Merchant Center reads GTINs from the gtin attribute in the product data you submit, so the number has to be in your product feed.
CTX Feed builds that feed from your WooCommerce store and reads the built-in field directly: in your feed’s attribute mapping, choose GTIN, UPC, EAN, or ISBN from the Primary Attributes group as the value for the GTIN column. This works in the free plugin.
Two things CTX Feed handles for you:
identifier_exists. In Google Shopping, Facebook and Bing feeds, CTX Feed adds theidentifier_existsattribute automatically, even if you never mapped it. It reports yes when the product has an identifier in the feed.- GTINs stored somewhere else. If your numbers already live in Yoast WooCommerce SEO, Rank Math Pro, Germanized for WooCommerce or any custom field, map that field instead of re-typing them.
See the steps: Add GTIN, EAN, MPN, UPC & ISBN to products and make a feed.
Leave out products that have no GTIN yet (Pro)
If some products are still waiting for their GTIN, you can keep them out of the feed until the number is in. A product has to pass every filter rule to be written to the feed. In CTX Feed Pro’s Advanced filters, an is not / not equal row with no value means “is not empty”, so a row of GTIN, UPC, EAN, or ISBN is not / not equal (blank) keeps only products that have a GTIN. A variation with an empty field counts its parent product’s GTIN here, so fill each variation’s own field first. Advanced filters are a CTX Feed Pro feature. See how to filter products.
Use this only for products that should have a GTIN. Store-brand and private-label items without one belong in the feed with brand and MPN; handmade or custom goods with no GTIN, MPN or brand go in with identifier_exists set to no (see below).
What Google requires for GTINs (and what gets products disapproved)
Check your WooCommerce GTINs against Google’s rules before the feed goes out. From Google’s GTIN specification:
- Send it whenever the manufacturer assigned one. Google recommends a GTIN for every product that has one; products with a missing or incorrect GTIN may have limited visibility. If a product has a GTIN and you don’t submit it, Google says it could be disapproved.
- 8, 12, 13 or 14 digits. Spaces and dashes are accepted but ignored.
- A correct check digit. Google points to the GS1 Check digit calculator.
- Convert old formats: 8-digit UPC-E to 12 digits, ISBN-10 to ISBN-13.
- No restricted or coupon numbers: GTINs starting with 02, 04 or 2 (restricted), or 05, 98 or 99 (coupons), aren’t accepted.
- One correct GTIN per variant.
- Never guess or make one up. If you’re not sure of a GTIN, don’t submit one.
Already seeing a GTIN error in Merchant Center? See common Google Merchant Center errors. For every other attribute, see the Google product feed specifications.
Products without a GTIN: brand + MPN and identifier_exists
Store-brand and private-label products, and products only you sell, often have no GTIN. Leave the GTIN empty and send brand and MPN instead. How MPN works: Google Shopping MPN.
Some products have no GTIN, MPN or brand at all: custom or one-of-a-kind goods, handmade items, vintage products, antiques and books published before 1970. For those, Google recommends identifier_exists set to no. Set no only when you’re certain: a product wrongly set to no, where there’s evidence an identifier exists, gets a warning.
In CTX Feed you rarely set this by hand: the feed works out the value from what each product’s row contains. If you set a fixed yes or no yourself, CTX Feed leaves it alone.
FAQs
What if I don’t have GTINs?
If the manufacturer never assigned one (store brands, private label, products only you sell), leave the field empty and send brand and MPN. If the product has no GTIN, MPN or brand at all, such as handmade or custom goods, set identifier_exists to no.
How do I add an EAN number to WooCommerce?
An EAN is a 13-digit GTIN, so it goes in the same built-in GTIN, UPC, EAN, or ISBN field on the product’s Inventory tab. There’s no separate EAN field to install. For many products at once, use the CSV import.
Do I need a plugin to add GTINs in WooCommerce?
Not to store them: WooCommerce 9.2 and later has the field built in. To get the numbers into Google Shopping you need a product feed, which a feed plugin such as CTX Feed generates from your store (free).
Can two products share a GTIN in WooCommerce?
No. The field must be unique across all products, like a SKU. Google also asks you not to submit several products for the same country and language with the same GTIN and the same variant attributes.
Does WooCommerce show the GTIN on the product page?
Not in the visible product details by default. WooCommerce adds a valid GTIN (8, 12, 13 or 14 digits) to the product’s structured data, the hidden markup search engines read.
Get your GTINs into your feed
WooCommerce 9.2+ gives every product and variation a place for its barcode. Fill it once, by hand or by CSV, then let your feed carry it to Google.
Map your WooCommerce GTIN into your Google feed: see the steps
Free version on WordPress.org. Every Pro licence includes a 30-day money-back guarantee.