Advertisement
CharlotteVDB

GA4 - purchase - Whoowine

Aug 29th, 2023
1,391
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: 'purchase',           // name of the event. In this case, it always must be purchase
  4.    ecommerce: {
  5. currency: 'EUR',
  6.       value: '56.70',
  7.       shipping: '4.95'
  8.       transaction_id: '1758',                   // insert an actual transaction ID
  9.       customer_email: 'test@example.com',           // customer email
  10.       customer_telephone: '+32494222436',           // customer telephone number (must always contain country code)  
  11.       coupon: 'blackfriday',    
  12.     items: [{                          
  13.       item_name: 'Mesquida Mora - Sincronia Negre 2019',    // insert a product name
  14.       item_id: '7967292883170',         // insert an actual product ID
  15.       price: '38.80',                   // insert an actual product price.
  16.       item_brand: 'Whoowine',          
  17.       item_category: 'Wijnfles',        // overkoepelende wijncategorie
  18.       item_category2: 'Rood',           // wijnsoort
  19.       item_category3: 'Spanje',         // wijnland
  20.       quantity: '1'                    
  21.     },{
  22.       item_name: 'La Tordera - Alnè Extra Brut',         // insert a product name
  23.       item_id: '7967292883171',       // insert an actual product ID
  24.       price: '12.95',                // insert an actual product price.
  25.       item_brand: 'Whoowine',          
  26.       item_category: 'Wijnfles',        // overkoepelende wijncategorie
  27.       item_category2: 'Mousserend',  // wijnsoort
  28.       item_category3: 'Italië',        // wijnland
  29.       quantity: '1'                                    
  30.     }]
  31.   }
  32. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement