Table of contents

View cart

The Google Tag Manager (GTM) "View Cart" event is triggered when a user views items in the cart. 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_cart', ecommerce: { items: [ { item_id: "746717-15478", item_name: "Gazelle Γυναικεία Sneakers", affiliation: 'The Athletes Foot GR', currency: 'EUR', discount: 21.99, index: 0, item_variant: "746717-15478.16151", price: "109.99", quantity: 1 } ] } });