View difference between Paste ID: AqmAydHD and 11fF3aKi
SHOW: | | - or go back to the newest paste.
1
window.dataLayer = window.dataLayer || [];
2
window.dataLayer.push({
3
  event: 'select_item',
4-
  process: 'rnw',  //Variable value. ID/name of the selected process.
4+
5
    items: [{
6
      item_name: 'REDA ESP - Gas Handler',             //Product Name - Type: string
7-
      item_name: 'Redmi Note 10 Pro',              //Product Name - Type: string
7+
      item_id: 'Reda-Esp-Gas-Handler',                 //Product ID/SKU - Type: string
8-
      item_id: 'XIAM2101K6',                       //Product ID/SKU - Type: string
8+
      price: 4125.00,                                 //Product price - Type: number
9-
      price: 9600.00,                              //Product price - Type: number
9+
      currency: 'USD',                                 //Currency of the price that is collected - Type: string
10-
      currency: 'RSD',                             //Currency of the price that is collected - Type: string
10+
      discount: 0.00,                                  //Any discount associated with this product - Type: number
11-
      discount: 0.00,                              //Any discount associated with this product - Type: number
11+
      affiliation: 'sals',                             //Vendor - Type: string
12-
      item_brand: 'Xiaomi',                        //Product Brand - Type: string   
12+
      item_brand: 'schlumberger',                      //Product Brand - Type: string   
13-
      item_category: 'Telefon',                    //Product Category - Type: string
13+
      item_category: 'Production',                     //Product Category - Type: string
14-
      item_category2: 'item_category2',            //Product Sub-Category 1 - Type: string
14+
      item_category2: 'Electrical Submersible Pumps',  //Product Sub-Category 1 - Type: string
15-
      item_category3: 'item_category3',            //Product Sub-Category 2 - Type: string
15+
      item_category3: 'REDA ESP - Gas Handler',                //Product Sub-Category 2 - Type: string
16-
      item_category4: 'item_category4',            //Product Sub-Category 3 - Type: string
16+
      item_category4: 'Base product',                //Product Sub-Category 3 - Type: string
17-
      item_category5: 'item_category5',            //Product Sub-Category 4 - Type: string
17+
      item_category5: 'item_category5',                //Product Sub-Category 4 - Type: string
18-
      item_variant: 'item_variant',                //Variant of the product e.g. size, color, variant ID - Type: string
18+
      item_variant: 'Reda-Esp-Gas-Handler',                       //Variant of the product - variant SKU/ID - Type: string
19-
      item_list_name: 'item_list_name',            //Product list name - 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: 1,                                    //The index/position of the item in a list - Type: number
21+
      index: 2,                                    //The index/position of the item in the list - Type: number
22-
      quantity: 1                                  //Product quantity - Type: number
22+
      quantity: 1                                      //Product quantity - Type: number
23
    }]
24
  }
25
});