Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'view_item_list', // name of the event. In this case, it always must be view_item_list
- ecommerce: {
- items: [{
- item_name: 'Alpecin-Fenix Sweatpants 2022', // insert a product name
- item_id: 'CIT30283', // insert an actual product ID
- price: '49.90', // insert an actual product price. Number or a string. Don't include currency code
- item_brand: 'FDMKR',
- item_category: 'Team Alpecin - Fenix', // category of a product
- item_category2: 'Sweatpants', // subcategory of a product (type of clothing)
- item_variant: 'L', // variant of a product, if there are no variants, exclude this key from the dataLayer.push
- item_list_name: 'Shop overview'
- index: 1
- quantity: '1' // always '1'
- },{
- item_name: 'Twisted hoodie', // insert a product name
- item_id: 'CIT30284', // insert an actual product ID
- price: '49.90', // insert an actual product price. Number or a string. Don't include currency code
- item_brand: 'FDMKR',
- item_category: 'Lifestyle', // category of a product
- item_category2: 'Hoodie', // subcategory of a product (type of clothing)
- item_variant: 'S', // variant of a product, if there are no variants, exclude this key from the dataLayer.push
- item_list_name: 'Related products' // Shop overview vs. related products
- index: 1
- quantity: '1' // always '1'
- }]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement