TagSpy

view_item_list

Recommended

Log this event when the user has been presented with a list of items of a certain category.

Platforms
web, app
When it fires
You send it when the action happens.
Official docs

Parameters (3)

ParameterTypeRequiredDescriptionExample
item_list_idstringNoThe ID of the list in which the item was presented to the user. Ignored if set at the item-level.related_products
item_list_namestringNoThe name of the list in which the item was presented to the user. Ignored if set at the item-level.Related products
itemsArray<Item>YesThe items for the event.-

Example

gtag.js
gtag('event', 'view_item_list', {
  items: [{ item_id: 'SKU_12345', item_name: 'Stan and Friends Tee', price: 9.99, quantity: 1 }],
  item_list_id: 'related_products',
  item_list_name: 'Related products',
});
GTM dataLayer
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
  event: 'view_item_list',
  items: [{ item_id: 'SKU_12345', item_name: 'Stan and Friends Tee', price: 9.99, quantity: 1 }],
  item_list_id: 'related_products',
  item_list_name: 'Related products',
});

Also see