filipr27

GA4 - view_item_list - next

Jun 1st, 2022 (edited)
135
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: 'view_item_list',
  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.       item_list_name: 'Global Search',                   //Product list name - Type: string
  17.       item_list_id: 'item_list_id',                  //Product list ID - Type: string
  18.       index: 1,                                      //The index/position of the item in the list - Type: number
  19.       quantity: 1                                    //Product quantity - Type: number
  20.     },{
  21.       // Another item.
  22.     }]
  23.   }
  24. });
Add Comment
Please, Sign In to add comment