How do I add a GTIN to Shopify product structured data?
Put the GTIN in the Barcode field of each variant, then check whether your theme copies it into the structured data on the product page. Shopify's documentation for the structured_data filter, which its Dawn theme uses, does not list a GTIN in the output, so look at a product page yourself. If the GTIN is missing there, a theme developer can add it from each variant's barcode.
Checked on . By Edesigno. Sources are listed at the end.
What is known
Two terms first
A GTIN is the number under a product's barcode, such as a 12-digit UPC or a 13-digit EAN. Structured data is a block of code on a product page that states its facts, such as name, price, stock and identifiers, in a form search engines and AI assistants can read.
Google recommends it, and doesn't require it
Google's guide to merchant listing structured data requires a name, an image and an offer with a price. It lists gtin, gtin8, gtin12, gtin13, gtin14 and mpn as recommended, and says: "Include all applicable global identifiers."
OpenAI sets the format
OpenAI's product feed specification takes one assigned GTIN of 8, 12, 13 or 14 digits with a valid check digit, leading zeros kept, with no spaces or dashes. It says to leave the GTIN out if the item has none, and not to invent an MPN, the manufacturer's part number, to replace it.
Shopify reads the Barcode field
Shopify lists "Barcode (ISBN, UPC, GTIN, etc.)" among the product details AI platforms consider. The barcode is stored per variant.
The theme decides what the page says
Shopify's structured_data filter turns a product into schema.org data: a Product if it has no variants, a ProductGroup if it has some. Its documented example shows brand, category, description, image, name, offers and url, and no GTIN. Shopify's Dawn theme prints its product data with this filter. Other themes and apps write their own.
Most stores we checked had none on the page
In the Edesigno AI Readiness Index, our own research on well-known Shopify brands in November 2026, 33% had a GTIN or MPN in the product data on the page we sampled. We read the HTML each server sends, without running JavaScript. We found no other published figure for this.
What is not known
Shopify does not document whether the structured_data filter ever adds the barcode as a GTIN. No AI company says how much weight it gives a GTIN on the page compared with one in its feed.
What to do about it
- Fill the Barcode fieldEnter the real GTIN on each variant in your Shopify admin: digits only, leading zeros kept. If a product has none, leave the field empty.
- Look at a product pageOpen a product page, view its source, and search for gtin. You can also paste the address into Google's Rich Results Test, which shows the product data it found.
- Add it to the theme if it's missingAsk a theme developer to add the variant's barcode as a gtin in the product's structured data, only when the barcode is a valid GTIN. Ask them to test it on a duplicate theme first.
- Check after each theme updateA theme update or a new reviews or SEO app can replace the structured data. Search the page source for gtin again.
The free audit checks whether your product page data carries an identifier. Product structured data and identifiers are part of the Sprint, a fixed-price project for $290.
Questions
Where do I enter a GTIN in Shopify?
In the Barcode field of each variant, in your Shopify admin. Shopify lists the barcode among the product details AI platforms consider.
Does Shopify add the GTIN to structured data automatically?
Shopify's documentation doesn't say so. Its structured_data filter, used by the Dawn theme, shows no GTIN in its documented example, and other themes write their own. Search your product page's source for gtin to see what yours does.
What if my products have no GTIN?
Leave the field empty. OpenAI's product feed specification says to omit a GTIN that was never assigned, and never to invent an MPN in its place. Google lists identifiers as recommended, not required.
How do I check if my product page has a GTIN?
Open the product page, view its source and search for gtin. Google's Rich Results Test also shows the product data it found on a page.
Sources
- Google Search Central, Merchant listing structured data, and Google's Rich Results Test.
- OpenAI, Products feed specification.
- Shopify Help Center, Optimizing your products for AI platforms.
- Shopify developer documentation, structured_data filter, and the Dawn theme's product section.
- The Edesigno AI Readiness Index, November 2026, read on 13 November 2026. Method and figures.
Every source above was read on 14 November 2026.
Is your product data complete?
The free audit reads your public product data, including barcodes on a sample of products, in about a minute. A person then checks the full report and emails it within 1 business day.