---
title: Add EAN to Product Structured Data (GTIN for Google)
description: "Add EAN to WooCommerce product structured data so Google knows each product's GTIN for Shopping and rich results."
url: "https://wpfactory.com/docs/ean-structured-data-gtin/"
updated: "2026-09-27"
category: How to
---

# Add EAN to Product Structured Data (GTIN for Google)

EAN for WooCommerce adds each product's EAN to its structured data automatically, as a free feature. To check or change it, go to WPFactory > EAN (also reachable at WooCommerce > Settings > EAN), open the General section, and find Product structured data. Keep Enable and Automatic key on so the correct GTIN property is used.

### Where to find it

Go to **WPFactory > EAN** (also reachable at **WooCommerce > Settings > EAN**), open the **General** section, and find the **Product structured data** group.

### Options

| Label | Option ID | Default | What it does |
| --- | --- | --- | --- |
| Enable | `alg_wc_ean_frontend_product_structured_data` | Yes | Adds the EAN to the product structured data output by WooCommerce. |
| Rank Math SEO plugin | `alg_wc_ean_frontend_product_structured_data_rank_math_seo` | No | Adds the EAN to the structured data generated by the Rank Math SEO plugin instead. |
| Automatic key | `alg_wc_ean_frontend_product_structured_data_key_auto` | Yes | Picks the schema property from the EAN type: `gtin8`, `gtin12`, `gtin13`, `gtin14`, or `gtin`. |
| Custom key | `alg_wc_ean_frontend_product_structured_data_key` | gtin | The schema property to use when **Automatic key** is turned off. |

### How the automatic key maps to the EAN type

- EAN-8 uses `gtin8`.
- UPC-A uses `gtin12`.
- EAN-13, ISBN-13, and JAN use `gtin13`.
- EAN-14 uses `gtin14`.
- All other types use `gtin`.

### Steps

1. Leave **Enable** on (it is on by default).
2. Keep **Automatic key** on so the correct GTIN property is chosen for each product. Turn it off and set a **Custom key** only if a specific integration needs one fixed property.
3. If you build your schema with Rank Math SEO, also tick the **Rank Math SEO plugin** option.
4. Click **Save changes**, then validate a product page with Google's Rich Results Test.

### Related

- The EAN type is set in **General > Type**. See [Managing product EANs and choosing a type](https://wpfactory.com/docs/ean-barcodes-woocommerce/).

### Get more from EAN for WooCommerce

Structured data output is free. [EAN for WooCommerce](https://wpfactory.com/item/ean-barcodes-woocommerce/) Pro adds scannable 1D and 2D barcodes, PDF label printing, and extra identifier fields. [See what Pro unlocks](https://wpfactory.com/item/ean-barcodes-woocommerce/).

Related articles

- [Add EAN and GTIN to the WooCommerce REST API](https://wpfactory.com/docs/ean-rest-api/)
- [Import and Export Product EANs with the WooCommerce CSV Tools](https://wpfactory.com/docs/import-export-product-eans/)
- [How to Set Up EAN, UPC and GTIN Codes in WooCommerce](https://wpfactory.com/docs/use-ean-upc-gtin/)
- [How to Add Extra Product Code Fields (MPN and More) in WooCommerce](https://wpfactory.com/docs/product-details-optimization/)
- [How to Generate EANs for All Products](https://wpfactory.com/docs/ean-generate-tool/)
