Skip to content
AgentReady
By Dylan HuntJune 9th, 2026Updated November 12th, 2026Shopify CatalogShopifyAIProduct schema

GTINs, Barcodes, and MPNs: How Product IDs Help AI Shopping Match Your Products

There is a field on every Shopify variant that many stores leave blank, and on branded and resold products it decides whether the catalog can tell your listing apart from a lookalike. It is the barcode field, and what goes in it is a GTIN.

This is the unglamorous half of AI shopping. Everyone talks about Product schema, prices, and ratings. Fewer people talk about identity: how an AI agent and Shopify's own catalog decide that your "Stanley 40oz Quencher" and the one in three other stores are the same product. That decision runs on identifiers, and getting them right is mechanical, not creative.

What the three identifiers actually are

  • GTIN (Global Trade Item Number) is the number inside a retail barcode, assigned through GS1. It goes by regional names: UPC (12 digits, North America), EAN (13 digits, Europe and most of the world), ISBN (books). They are all GTINs. One product, one GTIN, the same across every seller on earth.
  • MPN (Manufacturer Part Number) identifies a product within a single manufacturer's catalog. It is the fallback when a product has no GTIN, common for parts, components, and some made-to-order goods.
  • SKU (Stock Keeping Unit) is your own internal code. It means something to your warehouse and nothing to anyone else. It is not a public identity signal, and it never matches another store's catalog.

The distinction matters because only the shared ones are built for matching across sellers. A GTIN says "this is the same product the rest of the internet already knows." A SKU says "this is item 4471-B in my back room."

Where they live on Shopify

Per Shopify's barcodes help page, as of November 2026:

  • Products without variants carry barcodes in the Inventory section. Products with variants carry them per variant: select the variants in the Variants section, then choose Edit barcodes. A shirt in three sizes carries three barcodes, one per size.
  • You can set a barcode type. The options are Custom (the default), GTIN, UPC, EAN, ISBN, ASIN and NS-PID, and Shopify recognizes registered GTIN values and selects the GTIN type for you.
  • Up to 20 barcodes per product or variant, so a GTIN and a manufacturer number can sit side by side.
  • SKU is a separate field. Different purpose, do not confuse them.

There is still no field labelled MPN. The closest fit is the NS-PID type, which Shopify defines as a "non-standardised manufacturer product identifier, such as a model or part number." Some stores carry MPNs in a metafield instead and map them into structured data from there.

The admin field and your schema are two different places

It is tempting to assume that filling the barcode field puts a gtin into the Product schema on your page. Often it does not. Whether the identifier reaches your JSON-LD depends on what your theme or schema app emits, and many emit no identifier at all. In our Shopify AI-readiness benchmark (June 2026), 46.5% of the 2,229 stores that published Product schema had no gtin or mpn in it.

Here is what a product page's JSON-LD looks like when the identifiers do come through, using the Schema.org gtin13 and mpn properties:

{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Hydro Flask 32 oz Wide Mouth Bottle, Black",
  "brand": { "@type": "Brand", "name": "Hydro Flask" },
  "sku": "HF-32WM-BLK",
  "gtin13": "0012345678905",
  "mpn": "EXAMPLE-MPN-001",
  "offers": {
    "@type": "Offer",
    "price": "44.95",
    "priceCurrency": "USD",
    "availability": "https://schema.org/InStock"
  }
}

The numbers above are placeholders; use the ones on your packaging. For products with variants, Google's product variant guidance asks for a unique identifier on each variant, sku or gtin, inside a ProductGroup.

Why a blank barcode can leave your product on its own

Shopify's Global Catalog developer docs say search results "are clustered by Universal Product ID (UPID)," with offers from multiple merchants grouped under one product. That clustering is what lets an agent line up every seller of the same item, and it is the shelf the agentic buy box post describes.

What Shopify does not document is how it decides two listings share a UPID. A GTIN is the standard identifier for precisely that question, so a filled, correct GTIN is the clearest signal you can give. Without one, the catalog has to match on title, brand, images and attributes, and it may treat your listing as its own product. If that happens, your offer is not shown next to the other sellers of the same item, so a shopper comparing them does not see yours in that list.

For unique products you manufacture and only you sell, there is no cluster to join, so a missing GTIN costs you little. The identity gap matters on branded and resold goods, which is exactly where the blank field is most common, because nobody thought to copy the number off the box.

How to check and fix it, fast

  1. Find the gap. Export your products to CSV and check the Variant Barcode column; empty cells on branded or resold items are your hit list.
  2. Source the numbers. For resold goods, the GTIN is on the product packaging and in your supplier's data feed. For products you make, you can license GTINs from GS1 if you want to list in marketplaces and price-comparison surfaces that require them.
  3. Backfill the field. Edit barcodes per variant in the admin, set the type to GTIN where it applies, or update the Variant Barcode column in a CSV import. One pass per variant.
  4. Confirm it reaches your schema. A barcode in the admin only helps crawlers if it also shows up in the published Product schema. Run your store through the AI-readiness checker, which checks whether your Product schema carries a gtin or mpn, or the Catalog Readiness checker for a catalog-focused view.

The order of operations

Identifiers are necessary, not sufficient. A GTIN helps you get matched to the right product; it does not decide who the agent picks among the sellers. Once you are matched, the product fields do the work: price, availability, category, and attributes. And matching goes better when your product taxonomy is right in the first place, so the agent is comparing water bottles to water bottles.

Think of it as a sequence. Taxonomy puts you in the right aisle. The GTIN matches you to the exact product on the shelf. The product fields give the agent what it needs to compare you. Skip the middle step on resold goods and you make the catalog guess which product you are.

For the full picture of how Shopify's catalog finds and clusters products, see The Shopify Global Catalog guide. When you are ready to check what your store actually publishes, the AI-readiness checker is free.

Quick answers

Frequently asked questions

What is a GTIN and where does it go on Shopify?
A GTIN (Global Trade Item Number) is the GS1 standard product number that lives in a barcode: UPC in North America, EAN in Europe, ISBN for books. On Shopify it goes in the Barcodes field, set per variant on products with variants, where you can choose the barcode type (GTIN, UPC, EAN, ISBN and others) and add up to 20 barcodes. Whether it also reaches the Schema.org gtin property on your product pages depends on your theme or schema app, so check.
Do I need a GTIN if I make my own products?
Not always. GTINs identify products that exist in the world's product databases, which mostly means branded and resold goods. If you manufacture unique items that only you sell, there is no shared GTIN to match, and you compete on your own brand and product data instead. If you resell or carry branded inventory, a missing GTIN is a real gap, because it is the standard way to say your listing is the same product a shopper saw elsewhere.
What is the difference between a GTIN, an MPN, and a SKU?
A GTIN is a global, standardized number that is the same across every seller of that exact product. An MPN (Manufacturer Part Number) identifies the product within one manufacturer's catalog and is used when no GTIN exists. A SKU is your own internal code, meaningful only inside your store. GTINs and MPNs are the identifiers built for matching products across sellers; your SKU is for your own inventory and is not a public identity signal.
How does Shopify use a barcode to cluster products?
Shopify's Global Catalog developer docs say search results are clustered by Universal Product ID (UPID), with offers from multiple merchants under one product. Shopify does not document how it decides two listings belong to the same UPID. A GTIN is the industry-standard identifier for exactly that question, so filling it in is the most direct signal you can give, but treat the matching itself as Shopify's undocumented process.

See where your store stands

See what AI shopping assistants can read on your store.

Run the free AI-Readiness Checker to see, in under a minute, how ChatGPT, Perplexity, and Google read your store today and exactly what is holding it back. Then AgentReady prepares the fixes, starting with Schema.org structured data, and publishes them after you approve. Install free. Paid plans start at $9/mo.

Comments

Every comment here comes from a verified email. Write yours, confirm from your inbox, and it's live.

Loading comments…

Leave a comment

ShareXLinkedInFacebook

Written by Dylan Hunt, Founder, AgentReady. AgentReady measures what AI says about Shopify stores and helps teams improve the answer. See plans.