Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'begin_checkout', // name of the event. In this case, it always must be begin_checkout
- ecommerce: {
- items: [{ // an array with all products (that were in a cart when the checkout began)
- item_name: 'MARLBORO RED SUMMIT', // insert an actual product name
- item_id: 'MLB1985', // 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_variant: 'RED SUMMIT', // insert an actual product variant
- quantity: '1' // product quantity in the cart
- },{
- item_name: 'JUMBO PACK PHILIP MORRIS MIX&MATCH',
- item_id: 'PMI_JUM_PACK2938',
- price: '540.00',
- item_brand: 'Philip Morris',
- item_variant: 'JUMBO PACK',
- quantity: '1'
- }]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement