View difference between Paste ID: gHwv6vtg and 4NZQ8Vq0
SHOW: | | - or go back to the newest paste.
1
window.dataLayer = window.dataLayer || [];
2
window.dataLayer.push({
3-
  event: 'ga4_view_item_list',
3+
  event: 'view_item_list',
4
  process: 'rnw',  //Variable value. ID/name of the selected process.
5
  ecommerce: {
6-
      item_name: 'Beko Ugradna mašina za pranje sudova DIS35023',     //Product Name - Type: string
6+
7-
      item_id: '183351',                           //Product ID/SKU - Type: string
7+
      item_name: 'Redmi Note 10 Pro',              //Product Name - Type: string
8-
      price: 38999.00,                             //Product price - Type: number
8+
      item_id: 'XIAM2101K6',                       //Product ID/SKU - Type: string
9
      price: 9600.00,                              //Product price - Type: number
10
      currency: 'RSD',                             //Currency of the price that is collected - Type: string
11-
      item_brand: 'Beko',                          //Product Brand - Type: string   
11+
12-
      item_category: 'Bela tehnika',               //Product Category - Type: string
12+
      item_brand: 'Xiaomi',                        //Product Brand - Type: string   
13-
      item_category2: 'Mašine za pranje sudova',   //Product Sub-Category 1 - Type: string
13+
      item_category: 'Telefon',                    //Product Category - Type: string
14-
      item_category3: 'Ugradne mašine za sudove',  //Product Sub-Category 2 - Type: string
14+
      item_category2: 'item_category2',            //Product Sub-Category 1 - Type: string
15
      item_category3: 'item_category3',            //Product Sub-Category 2 - Type: string
16
      item_category4: 'item_category4',            //Product Sub-Category 3 - Type: string
17
      item_category5: 'item_category5',            //Product Sub-Category 4 - Type: string
18-
      item_list_name: 'Segmentfiy - Home',         //Product list name - Type: string
18+
19
      item_list_name: 'item_list_name',            //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
22
      quantity: 1                                  //Product quantity - Type: number
23
    },{
24
      //Another product.
25
    }]
26
  }
27
});