View difference between Paste ID: iY9JbXq7 and q5a3HDQs
SHOW: | | - or go back to the newest paste.
1
window.dataLayer = window.dataLayer || [];
2
window.dataLayer.push({
3-
  event: 'view_item',
3+
  event: 'add_to_cart',
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: 11130.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: 'Gas Volume Fraction 75%',                //Product Sub-Category 3 - Type: string
17-
      item_category5: 'Configured',                //Product Sub-Category 4 - Type: string
17+
      item_category5: 'item_category5',                //Product Sub-Category 4 - Type: string
18
      item_variant: '102761535',                       //Variant of the product - variant SKU/ID - Type: string
19
      quantity: 1                                      //Product quantity - Type: number
20
    }]
21
  }
22
});