Try it

Product ID

Sortyra team · · 3 min read

A product ID is a unique, permanent identifier of an item in a feed, which lets the channel recognise the same product every time it loads the feed. In a Google Merchant feed it is the g:id field; in a feed for Heureka and Zboží.cz it is ITEM_ID. It usually holds the product code from the online shop.

What is a product ID

The ID is an item's "passport number" in the feed. Unlike an EAN, it isn't set by the manufacturer but by you or your online shop. It works like a cloakroom ticket: as long as the coat keeps the same ticket, the attendant can find it. If you swap the ticket, to the attendant it is a different coat.

The channel stores everything it knows about the product against the ID – approval, click history, matching to a product page. That is why the ID must be unique (different for every item) and permanent (it doesn't change between updates).

What it looks like in a feed

<!-- Google Merchant -->
<g:id>STAN-204</g:id>

<!-- Heureka, Zboží -->
<ITEM_ID>STAN-204</ITEM_ID>

The same product code sits in the g:id element in a Google feed and in ITEM_ID in a feed for Czech and Slovak comparison sites.

What it is used for

  • Google Merchant Center – id is required, has a maximum of 50 characters and shouldn't change once the product has been created. Ideally, use the SKU.
  • Heureka – ITEM_ID is required, has a maximum of 36 characters and may only contain unaccented letters, digits, underscores and hyphens. The availability feed, for example, links to it.
  • Zboží.cz – ITEM_ID should be permanent; a different product or variant should have a different ID.
  • Meta – for dynamic ads, id must match the identifier sent by the website tracking (pixel).

What to watch out for

  • Changing the ID – the channel treats the product as new, loses its history and has to approve or match it again.
  • The same ID twice – the channel can't tell apart two items with one ID.
  • Disallowed characters and length – a space, slash or accented letter in ITEM_ID, or an ID too long for Heureka, causes an error.
  • An ID based on row order (1, 2, 3…) shifts every time a product is added.
  • The same codes at several suppliers – when feeds are combined, products from different suppliers collide.

How Sortyra helps

In the source settings, on the Mapping tab you set the Item ID field, which Sortyra uses to recognise the same product at the next download. A Product code prefix prevents codes from different suppliers colliding, and Rows not imported shows items without an ID or with an ID that appears twice in the feed.

Frequently asked questions

Can the product ID be the same as the EAN?

It can, but it isn't a good idea. Not every product has an EAN, and with some suppliers variants share one EAN. Your own product code is safer.

What happens if I change a product ID?

The channel considers the product new – it loses its performance history and has to process, approve or match it again.

How long can an ID be?

Google allows a maximum of 50 characters, Heureka 36. A short ID made of unaccented letters, digits and hyphens works everywhere.

Try it on your own feed