Advertisement
JITreviso

ga4_eec | add_payment_info

Aug 21st, 2022
696
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: 'add_payment_info',              // name of the event. In this case, it always must be begin_checkout
  4.   ecommerce: {
  5.   payment_type: 'Paypal',             // name of the payment method                                            
  6.     items: [{                           // an array with all products (that were in a cart when the checkout began)
  7.       item_name: 'MARLBORO RED SUMMIT',           // insert an actual product name
  8.       item_id: 'MLB1985',              // insert an actual product ID
  9.       price: '325.00',                   // insert an actual product price. Number or a string. Don't include currency code
  10.       item_brand: 'Marlboro',            // insert an actual product price
  11.       item_variant: 'RED SUMMIT',             // insert an actual product variant
  12.       quantity: '1'                     // product quantity in the cart
  13.     },{
  14.       item_name: 'JUMBO PACK PHILIP MORRIS MIX&MATCH',
  15.       item_id: 'PMI_JUM_PACK2938',
  16.       price: '540.00',
  17.       item_brand: 'Philip Morris',
  18.       item_variant: 'JUMBO PACK',
  19.       quantity: '1'
  20.     }]
  21.   }
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement