View difference between Paste ID: FFzJZ5m6 and rFwMQmad
SHOW: | | - or go back to the newest paste.
1
window.dataLayer = window.dataLayer || [];
2
window.dataLayer.push({
3-
  event: 'view_item',
3+
  event: 'select_item',
4
  ecommerce: {
5
    items: [{
6-
      item_name: 'ECLIPSE Blackoil Reservoir Simulation',             //Product Name - Type: string
6+
      item_name: 'ECLIPSE Blackoil Reservoir Simulation',      //Product Name - Type: string
7-
      item_id: '71274',                 //Product ID/SKU - Type: string
7+
      item_id: '71274',                              //Product ID/SKU - Type: string
8-
      price: 4000.00,                                 //Product price - Type: number
8+
      price: 4000.00,                                //Product price - Type: number
9-
      currency: 'USD',                                 //Currency of the price that is collected - Type: string
9+
      currency: 'USD',                               //Currency of the price that is collected - Type: string
10-
      discount: 0.00,                                  //Any discount associated with this product - Type: number
10+
      discount: 0.00,                                //Any discount associated with this product - Type: number
11-
      item_brand: 'Oil and Gas Software',                      //Product Brand - Type: string   
11+
      item_brand: 'Oil and Gas Software',            //Product Brand - Type: string   
12-
      item_category: 'Schlumberger Software',                     //Product Category - Type: string
12+
      item_category: 'Schlumberger Software',        //Product Category - Type: string
13-
      item_category2: 'Indonesia',  //Product Sub-Category 1 - Type: string
13+
      item_category2: 'Indonesia',                   //Product Sub-Category 1 - Type: string
14-
      item_category3: 'Jakarta',                //Product Sub-Category 2 - 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
15+
      item_variant: 'Foundation',                    //Variant of the product - variant SKU/ID - Type: string
16-
      quantity: 1                                      //Product quantity - Type: number
16+
      item_list_name: 'Home Page',                   //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
  }
22
});