filipr27

GA4 - begin_checkout - next

Jun 1st, 2022 (edited)
149
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',
  4.   ecommerce: {
  5.     items: [{
  6.       item_name: 'ECLIPSE Blackoil Reservoir Simulation',         //Product Name - Type: string
  7.       item_id: '71274',                         //Product ID/SKU - Type: string
  8.       price: 4000.00,                           //Product price - Type: number
  9.       currency: 'USD',                          //Currency of the price that is collected - Type: string
  10.       discount: 0.00,                           //Any discount associated with this product - Type: number
  11.       item_brand: 'Oil and Gas Software',       //Product Brand - Type: string  
  12.       item_category: 'Schlumberger Software',   //Product Category - Type: string
  13.       item_category2: 'Indonesia',              //Product Sub-Category 1 - Type: string
  14.       item_category3: 'Jakarta',                //Product Sub-Category 2 - Type: string
  15.       item_variant: 'Foundation',               //Variant of the product - variant SKU/ID - Type: string
  16.       quantity: 1                               //Product quantity - Type: number
  17.     },{
  18.       // Another item.
  19.     }]
  20.   }
  21. });
Add Comment
Please, Sign In to add comment