View difference between Paste ID: mggzwL6w and 2EjMdFeH
SHOW: | | - or go back to the newest paste.
1
window.dataLayer = window.dataLayer || [];
2
window.dataLayer.push({
3-
  event: 'ga4_add_to_cart',
3+
  event: 'add_to_cart',
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: 'NEO 15 - Redmi Note 10 Pro',     //Product Name - Type: string
8-
      price: 38999.00,                             //Product price - Type: number
8+
      item_id: 'SPO_SRPP4N - 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: 'a1 - Xiaomi',                   //Product Brand - Type: string   
13-
      item_category2: 'Mašine za pranje sudova',   //Product Sub-Category 1 - Type: string
13+
      item_category: 'Tarifa - 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 - Category',     //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
  }
25
});