View item
The Google Tag Manager (GTM) "View Item" event is triggered when a user clicks on a specific product. The event is also triggered when a user switches between different colors of the product. This action triggers a predefined event within GTM, which can be used for tracking purposes in Google Analytics or other marketing and analytics tools.
dataLayer.push({
event: 'view_item',
ecommerce: {
items: [
{
item_id: "746717-15478",
item_name: "Gazelle Γυναικεία Sneakers",
affiliation: 'The Athletes Foot GR',
currency: 'EUR',
discount: "22" ,
index: 0,
item_variant: "",
price: 109.99,
quantity: 1
}
]
}
});