View difference between Paste ID: mQK9tnTF and 5wYmsbN4
SHOW: | | - or go back to the newest paste.
1
window.dataLayer = window.dataLayer || [];
2
window.dataLayer.push({
3-
  event: 'ga4_view_cart',
3+
  event: 'view_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-
      quantity: 3                                  //Product quantity - Type: number
18+
19
      quantity: 1                                  //Product quantity - Type: number
20
    },{
21
      //Another product.
22
    }]
23
  }
24
});