# Display available SKU, GTIN or MPN

- Check 20.06 · E-commerce SEO · Critical
- Source: https://checklist-seo-geo.com/en/e-commerce-seo/display-available-sku-gtin-mpn
- Enter and display SKU, GTIN (EAN) and MPN: GS1 rules, check digit validation, markup and Merchant Center feed, on WooCommerce, Shopify, PrestaShop or Magento.
- Updated on 2026-11-25
- Licence: CC BY 4.0. Credit “Checklist SEO & GEO” with a link to https://checklist-seo-geo.com/en/e-commerce-seo/display-available-sku-gtin-mpn.
- Plugin checklist-seo-geo: 1.3.1 · https://github.com/maximegaul/checklist-seo-geo

## In short

Three identifiers designate a product: the SKU (Stock Keeping Unit), your internal reference; the GTIN (Global Trade Item Number), the global barcode assigned by GS1, called EAN-13 in Europe; the MPN (Manufacturer Part Number), the manufacturer's reference. This task consists of entering the ones that actually exist, displaying them on the product page and reusing them identically in the structured data and the merchant feed. Once it is done, every branded product carries its exact GTIN, and no identifier is made up.

## Why it matters

The GTIN lets search engines recognize that a product sold by you is the same as one sold elsewhere. Google calls it “strongly recommended” in the Merchant Center feed specification and recommends it in merchant listing structured data: it is used to group offers, to associate reviews and specifications, and to show your offer in price comparisons.

The MPN plays that role when the manufacturer has not assigned a GTIN: Merchant Center requires it only in that case. The SKU, for its part, only means something in your store, but it links the page, the markup and the feed, and lets the customer give you a reference.

On the visitor and AI assistant side, many searches are made by reference: a tradesperson recommending a part, a customer reading the code on a package. Displaying the manufacturer's reference on the page lets you answer those exact queries. No identifier guarantees being cited, but a product with no identifier is harder to match reliably.

A wrong GTIN is worse than none: it attaches your offer to another product, and Merchant Center may disapprove it.

## What it improves

- **Shopping and merchant listings**: offers grouped correctly, fewer disapprovals for invalid identifiers.
- **Reference queries**: the MPN and GTIN appear on the page.
- **Consistency of page, markup and feed**: a single identifier links all three sources.
- **Comparison by AI assistants**: a product identifiable without ambiguity. An indirect effect, not proven.
- **Customer service and logistics**: the customer quotes the right reference.

## How to check

**On a product page**:

```bash
curl -s https://example.com/produits/theiere-fonte-08l/ | grep -o -E '"(sku|gtin|gtin8|gtin12|gtin13|gtin14|mpn)" *: *"?[0-9A-Za-z-]*'
```

Compliant: a `sku`, a 13-digit `gtin13` (or `gtin`) for a European branded product, an `mpn` if the manufacturer provides one, and the same values displayed on the page.

**Across the catalog**: export the products and count the GTINs that are empty, duplicated, the wrong length or with an incorrect check digit. The check digit can be verified in a spreadsheet (Google Sheets or Excel, GTIN-13 as text in `A2`):

```txt
=MOD(10-MOD(SUMPRODUCT(MID(A2,ROW($1:$12),1)*{1;3;1;3;1;3;1;3;1;3;1;3}),10),10)=VALUE(RIGHT(A2,1))
```

`TRUE` means the check digit is correct. The formula works for 13 digits only. For all formats, in Python:

```python
def gtin_valide(code: str) -> bool:
    if not code.isdigit() or len(code) not in (8, 12, 13, 14):
        return False

    corps = code[:-1]
    total = sum(int(c) * (3 if i % 2 == 0 else 1) for i, c in enumerate(reversed(corps)))

    return (10 - total % 10) % 10 == int(code[-1])
```

A correct check digit does not prove that the GTIN belongs to this product. To verify that, GS1 offers a lookup service for registered codes (Verified by GS1), and the brand itself remains the authority. Merchant Center also flags invalid or unrecognized GTINs in the product diagnostics.

## How to implement

### Before you start

| Identifier | Who assigns it | Format | When to provide it |
|---|---|---|---|
| SKU | You | Free, unique per variant | Always |
| GTIN-13 (EAN-13) | GS1, through the brand | 13 digits | Whenever it exists |
| GTIN-12 (UPC) | GS1, through the brand | 12 digits | North American products |
| GTIN-8, GTIN-14 | GS1 | 8 or 14 digits | Small packages, logistics units |
| ISBN | ISBN agency | 13 digits (GTIN format) | Books |
| MPN | Manufacturer | Alphanumeric | If there is no GTIN, or in addition |

Rules:

- **One identifier per variant.** Each size and each color has its own SKU and, if it has one, its own GTIN. Do not copy the parent's GTIN onto the variants.
- **Make nothing up.** No fabricated GTIN, no GTIN borrowed from a similar product, no improvised MPN. A GTIN comes from the packaging or the supplier database.
- **Your own brand**: to obtain GTINs, join GS1 in your country (GS1 France for a French company).
- **Products with no identifier** (handmade, custom-made, vintage, private label without GS1): in Merchant Center, set `identifier_exists` to `no`. Do not use it if the product has a GTIN.

**Display on the product page**, near the specifications table:

```html
<dl class="product-identifiers">
  <dt>Reference</dt><dd>TF-08-NO</dd>
  <dt>Manufacturer ref.</dt><dd>EM-TF08-BLK</dd>
  <dt>EAN</dt><dd>3760000000017</dd>
</dl>
```

Fictional values. For a product with variants, update these values when the customer chooses a variant.

**Structured data**: `sku`, `mpn` and `gtin13` (or `gtin`, which accepts every format) in the `Product`, and `brand.name`. For variants, these properties go on each `Product` of the `ProductGroup`. The complete block is in [implement Product, ProductGroup and Offer](https://checklist-seo-geo.com/en/e-commerce-seo/implement-product-productgroup-offer).

**Merchant Center feed**: the `gtin` attribute (digits only, no spaces or hyphens), `mpn`, `brand`, and `identifier_exists` if needed. The feed and the page must carry the same values.

> **Warning:** Merchant Center rejects GTINs from ranges reserved for internal use (prefixes 2, 02 and 04) and from coupon ranges (05, 98, 99). An in-store or variable-weight barcode is not a GTIN to submit.

### WordPress

Versions: WordPress 6.4 and later, WooCommerce 9.2 to 11.

In WooCommerce, the **Inventory** tab of the product data: **SKU** and the **GTIN, UPC, EAN, or ISBN** field, available since WooCommerce 9.2. For a variable product, these fields exist in each variation. WooCommerce includes the SKU and a valid GTIN in its structured data; it has no native MPN field: use an attribute or a custom field.

The SKU is displayed by default below the buy button. To display the GTIN as well, in a child theme's `functions.php`:

```php
add_action('woocommerce_product_meta_end', function (): void {
    global $product;

    $gtin = $product->get_global_unique_id();

    if (! $gtin) {
        return;
    }

    echo '<span class="gtin">EAN: ' . esc_html($gtin) . '</span>';
});
```

### Shopify

Versions: Shopify admin and Online Store 2.0 themes, all plans, November 2026.

On the product page, or in each variant: **SKU (Stock Keeping Unit)** and **Barcode (ISBN, UPC, GTIN, etc.)**. In bulk, the `SKU` and `Barcodes` columns of the import CSV. The themes' `structured_data` filter includes these values.

For display, Dawn offers a **SKU** block in the product section. For the barcode and an MPN stored in a metafield, add a **Custom Liquid** block:

```liquid
{%- assign variant = product.selected_or_first_available_variant -%}
{%- if variant.barcode != blank -%}
  <p>EAN: <span>{{ variant.barcode }}</span></p>
{%- endif -%}
{%- if product.metafields.custom.mpn != blank -%}
  <p>Manufacturer ref.: <span>{{ product.metafields.custom.mpn.value }}</span></p>
{%- endif -%}
```

Changing the variant does not update this block without a script: check how your theme behaves, or display each variant's value in a table.

### PrestaShop

Versions: PrestaShop 8 and 9, Classic theme.

On the product page, in the references section: **Reference**, **MPN**, **UPC barcode**, **EAN-13 or JAN barcode**, **ISBN**. For combinations, each combination has its own reference, EAN-13, UPC, ISBN and MPN fields. The Classic theme displays the reference in the product details tab, followed by a table of specific references (EAN-13, ISBN, UPC, MPN) when they are filled in. Its markup includes the reference and the EAN-13.

### Magento

Versions: Magento Open Source and Adobe Commerce 2.4.7 to 2.4.9, Luma theme.

The SKU is native. For the GTIN and the MPN, create text attributes (`Stores > Attributes > Product`, for example `gtin` and `mpn`), add them to the attribute set, and set **Visible on Catalog Pages on Storefront** to “Yes” to display them in the “More Information” tab. Check that your markup extension and your feed module read these attributes.

### Laravel

Versions: Laravel 11 to 13.

`sku` (unique), `gtin` and `mpn` columns on the variants table, with a validation rule that checks the check digit:

```php
public function rules(): array
{
    return [
        'sku' => ['required', 'string', 'max:64', Rule::unique('variants')->ignore($this->variant)],
        'gtin' => ['nullable', 'digits_between:8,14', new ValidGtin()],
        'mpn' => ['nullable', 'string', 'max:70'],
    ];
}
```

The `ValidGtin` rule reuses the Python algorithm above. Display all three values on the product page and in the JSON-LD from the same variant.

### Next.js

Versions: Next.js 15 and 16 (App Router).

Fetch the identifiers along with the selected variant (URL parameter or state), and display them on the product page and in the JSON-LD. If the variant changes on the client, update the display and the URL; the server-rendered markup describes the variant preselected by the URL.

## Common mistakes

- **Made-up GTINs** to satisfy Merchant Center, or the GTIN of a similar product.
- **The same GTIN on every variant**, the parent product's.
- **GTINs with spaces or hyphens** in the feed.
- **`identifier_exists` set to `no`** on branded products that have a barcode.
- **A different SKU** on the page, in the markup and in the feed.
- **An internal barcode** (prefixes 2, 02, 04) submitted as a GTIN.
- **Leading zeros lost** when the file is opened in a spreadsheet: format the column as text.

## Frequently asked questions

### What is the difference between SKU, GTIN, EAN and MPN?

The SKU is your internal reference, free-form and unique per variant. The GTIN is the global barcode assigned by GS1; the EAN-13, used in Europe, is its 13-digit version. The MPN is the reference the manufacturer gives its product. The GTIN and the MPN identify the product everywhere, the SKU only in your store.

### Is a GTIN mandatory for Google Shopping?

A GTIN is required only for products to which the manufacturer has assigned one; for those, leaving it out can lead to limited visibility or even disapproval. If the manufacturer has not assigned a GTIN, provide the MPN and the brand. For a product with no identifier at all, such as a handmade item, set identifier_exists to no. Never make up a GTIN: a wrong code can lead to the product being disapproved.

### How do I get an EAN code for my own products?

To get EAN-13 codes for your own brand, join GS1 in your country, for example GS1 France for a French company. Membership assigns you a company prefix from which you create the codes for your products. Codes resold by third-party sites are not linked to your company and may be rejected by marketplaces.

### Should the EAN code be displayed on the product page?

It is not mandatory, but it is useful. An EAN code and a manufacturer reference displayed on the product page let it answer searches for an exact reference and reassure the buyer looking for a specific model. They also keep the page consistent with the structured data and the Merchant Center feed, which carry the same values.

## Resources

- [Merchant Center Help: GTIN](https://support.google.com/merchants/answer/6324461?hl=en)
- [Merchant Center Help: MPN](https://support.google.com/merchants/answer/6324482?hl=en)
- [Merchant Center Help: Identifier exists](https://support.google.com/merchants/answer/6324478?hl=en)
- [Merchant Center Help: Brand](https://support.google.com/merchants/answer/6324351?hl=en)
- [Google Search Central: Merchant listing structured data](https://developers.google.com/search/docs/appearance/structured-data/merchant-listing?hl=en)
- [GS1 France](https://www.gs1.fr/)
- [Shopify: Using CSV files for products](https://help.shopify.com/en/manual/products/import-export/using-csv)

Next steps: [display brand, price and currency](https://checklist-seo-geo.com/en/e-commerce-seo/display-brand-price-currency) and [manage variants](https://checklist-seo-geo.com/en/e-commerce-seo/manage-variants).
