Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'remove_from_cart', // name of the event. In this case, it always must be view_item_list
- ecommerce: {
- items: [{ // an array where all currently viewed products must be included
- item_name: 'MARLBORO RED SUMMIT', // insert an actual product name
- item_id: 'MLB0185', // insert an actual product ID
- price: '325.00', // insert an actual product price. Number or a string. Don't include currency code
- item_brand: 'Marlboro', // insert an actual product price
- item_category: 'Marlboro', // insert an actual product top-level category
- item_variant: 'Red Summit', // insert an actual product variant
- index: 1, // insert product's position in that list
- quantity: '1' // product quantity. In case of view_item_list, it will usually be equal to 1
- },{
- item_name: 'JUMBO PACK PHILIP MORRIS MIX&MATCH',
- item_id: 'PMIJP1086',
- price: '540.00',
- item_brand: 'Jumbo Pack',
- item_category: 'Philip Morris',
- item_variant: 'Jumbo Pack',
- index: 2,
- quantity: '1'
- }]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement