Advertisement
CharlotteVDB

GA4 - add_to_cart - Whoowine

Aug 29th, 2023
1,024
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_to_cart',            // name of the event. In this case, it always must be view_item
  4.    ecommerce: {
  5.     items: [{                          
  6.       item_name: 'Mesquida Mora - Sincronia Negre 2019',            // insert a product name
  7.       item_id: '7967292883170',                                     // insert an actual product ID
  8.       price: '38.80',                   // insert an actual product price.
  9.       item_brand: 'Whoowine',          
  10.       item_category: 'Wijnfles',        // overkoepelende wijncategorie
  11.       item_category2: 'Rood',           // wijnsoort
  12.       item_category3: 'Spanje',         // wijnland
  13.       quantity: '1'                     // always '1'
  14.     }]
  15.   }
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement