filipr27

GA4 - select_item - ofmpec

Apr 28th, 2022
180
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: 'select_item',
  4.   ecommerce: {
  5.     items: [{
  6.       item_name: 'REDA ESP - Gas Handler',             //Product Name - Type: string
  7.       item_id: 'Reda-Esp-Gas-Handler',                 //Product ID/SKU - Type: string
  8.       price: 4125.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.       affiliation: 'sals',                             //Vendor - Type: string
  12.       item_brand: 'schlumberger',                      //Product Brand - Type: string  
  13.       item_category: 'Production',                     //Product Category - Type: string
  14.       item_category2: 'Electrical Submersible Pumps',  //Product Sub-Category 1 - Type: string
  15.       item_category3: 'REDA ESP - Gas Handler',                //Product Sub-Category 2 - Type: string
  16.       item_category4: 'Base product',                //Product Sub-Category 3 - Type: string
  17.       item_category5: 'item_category5',                //Product Sub-Category 4 - Type: string
  18.       item_variant: 'Reda-Esp-Gas-Handler',                       //Variant of the product - variant SKU/ID - Type: string
  19.       item_list_name: 'New and Popular',            //Product list name - Type: string
  20.       item_list_id: 'item_list_id',                //Product list ID - Type: string
  21.       index: 2,                                    //The index/position of the item in the list - Type: number
  22.       quantity: 1                                      //Product quantity - Type: number
  23.     }]
  24.   }
  25. });
Advertisement
Add Comment
Please, Sign In to add comment