Skip to main content

How do I remove the GTIN from a product's JSON-LD?

Leave the barcode out of structured data for selected products.

Written by Julia

Our JSON-LD uses the barcode from your Shopify product variants as the product's GTIN. We only add it when it looks like a real GTIN: 8, 12, 13 or 14 digits with a valid check digit.

If you use your own internal barcodes, for example for stock management or your POS, some of them can still pass this check. Google then shows a "Not a globally valid GTIN" warning in Search Console.

To leave the GTIN out for a product, add the tag exclude-gtin to it. The tag isn't case-sensitive.

  1. Go to your Shopify admin → Products and open the product.

  2. In the Tags field, add exclude-gtin.

  3. Click Save.

To tag many products at once, select them in the Products list, click More actions → Add tags and enter exclude-gtin.

That's it! Your barcode stays in Shopify, but our JSON-LD will no longer show it as a GTIN. All other product data stays the same. Google can take a few days to recrawl your pages and clear the warnings.

Did this answer your question?