Try it

item_group_id (variant group)

Sortyra team · · 3 min read

item_group_id is a shared code that links the variants of one product in a feed – for example, a hoodie in four sizes and two colours. Each variant is a separate item with its own ID, but they all carry the same group code. On Heureka and Zboží this field is called ITEMGROUP_ID.

What is item_group_id

Picture a clothes rail in a shop with one hoodie model hanging on it, in sizes S to XL and in two colours. Each piece has its own tag with its own code, but they all belong to the same model. In a feed, each of these pieces is a separate item – a variant. So that a computer knows the variants belong together, they all get the same group code: item_group_id.

The group code is usually taken from the code of the main ("parent") product. Customers never see it; it is only there to link the variants.

What it looks like in a feed

<!-- Google Merchant -->
<item>
  <g:id>MIK-200-M-SIV</g:id>
  <g:item_group_id>MIK-200</g:item_group_id>
  <g:title>Horal Classic hoodie grey M</g:title>
  <g:color>grey</g:color>
  <g:size>M</g:size>
</item>

<!-- Heureka -->
<SHOPITEM>
  <ITEM_ID>MIK-200-M-SIV</ITEM_ID>
  <ITEMGROUP_ID>MIK-200</ITEMGROUP_ID>
  <PRODUCTNAME>Horal Classic hoodie grey M</PRODUCTNAME>
</SHOPITEM>

The "grey M" variant has its own ID, but it shares the group code MIK-200 with all the other sizes and colours.

What it is used for

  • Google Shopping uses it to show variants together, so the customer can choose a colour or size. Google requires the field for variants in selected countries and recommends it everywhere. Alongside it, Google also wants the attribute in which the variants differ (color, size, material, pattern).
  • Meta (Facebook, Instagram) also requires it for variants.
  • Heureka, according to its specification, uses ITEMGROUP_ID only for clothing and footwear.
  • Zboží.cz recommends it for variants that differ in one parameter and does not limit it to fashion.
  • Online shops use the group code on import to create one product page with a choice of variants.

What to watch out for

  • The same code for different models. If two different products get the same group code, the channel merges them into one offer.
  • A missing code on variants. Each size then appears as a separate, unrelated product.
  • Variants with no difference. The channel treats two variants with the same colour and size as duplicates – they must differ in at least one attribute.
  • A changing code. Keep the group code stable; after a change, the channel treats it as a new group.
  • Length: Google accepts a maximum of 50 characters, Heureka and Zboží 36.

How Sortyra helps

When Sortyra loads a source, it groups variants even if the supplier sends them as separate items with a reference to the parent. The Fill in missing codes recipe in Rules gives a series that shares an EAN a common group code, so it is displayed as variants. In the output for Google, the code is written as g:item_group_id.

Frequently asked questions

Is item_group_id required?

Only for products that have variants. A simple product without variants doesn't need it, and the field is left out.

What should I put in item_group_id?

The code of the main product, for example MIK-200. It must be the same for all variants of one model and different for every other model.

Can I use ITEMGROUP_ID on Heureka for every product?

No. According to its specification, Heureka uses it only for clothing and footwear; distinguish other variants by their name and parameters.

Try it on your own feed