Advertisement
JITreviso

ga4_eec | begin_checkout

Aug 21st, 2022
739
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.dataLayer = window.dataLayer || [];
  2. window.dataLayer.push({
  3.   event: 'begin_checkout',              // name of the event. In this case, it always must be begin_checkout
  4.   ecommerce: {                          
  5.     items: [{                           // an array with all products (that were in a cart when the checkout began)
  6.       item_name: 'MARLBORO RED SUMMIT',           // insert an actual product name
  7.       item_id: 'MLB1985',              // insert an actual product ID
  8.       price: '325.00',                   // insert an actual product price. Number or a string. Don't include currency code
  9.       item_brand: 'Marlboro',            // insert an actual product price
  10.       item_variant: 'RED SUMMIT',             // insert an actual product variant
  11.       quantity: '1'                     // product quantity in the cart
  12.     },{
  13.       item_name: 'JUMBO PACK PHILIP MORRIS MIX&MATCH',
  14.       item_id: 'PMI_JUM_PACK2938',
  15.       price: '540.00',
  16.       item_brand: 'Philip Morris',
  17.       item_variant: 'JUMBO PACK',
  18.       quantity: '1'
  19.     }]
  20.   }
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement