View difference between Paste ID: Z689v296 and vwBW47P2
SHOW: | | - or go back to the newest paste.
1
window.dataLayer = window.dataLayer || [];
2
window.dataLayer.push({
3-
  event: 'ga4_view_item',
3+
  event: 'view_item',
4
  ecommerce: {
5
    items: [{
6-
      item_name: 'Beko Ugradna mašina za pranje sudova DIS35023',    //Product Name - Type: string
6+
      item_name: 'Redmi Note 10 Pro',              //Product Name - Type: string
7-
      item_id: '183351',                           //Product ID/SKU - Type: string
7+
      item_id: 'XIAM2101K6',                       //Product ID/SKU - Type: string
8-
      price: 38999.00,                             //Product price - Type: number
8+
      price: 9600.00,                              //Product price - Type: number
9
      currency: 'RSD',                             //Currency of the price that is collected - Type: string
10
      discount: 0.00,                              //Any discount associated with this product - Type: number
11-
      item_brand: 'Beko',                          //Product Brand - Type: string   
11+
      item_brand: 'Xiaomi',                        //Product Brand - Type: string   
12-
      item_category: 'Bela tehnika',               //Product Category - Type: string
12+
      item_category: 'Telefon',                    //Product Category - Type: string
13-
      item_category2: 'Mašine za pranje sudova',   //Product Sub-Category 1 - Type: string
13+
      item_category2: 'item_category2',            //Product Sub-Category 1 - Type: string
14-
      item_category3: 'Ugradne mašine za sudove',  //Product Sub-Category 2 - Type: string
14+
      item_category3: 'item_category3',            //Product Sub-Category 2 - Type: string
15
      item_category4: 'item_category4',            //Product Sub-Category 3 - Type: string
16
      item_category5: 'item_category5',            //Product Sub-Category 4 - Type: string
17
      item_variant: 'item_variant',                //Variant of the product e.g. size, color, variant ID - Type: string
18
      quantity: 1                                  //Product quantity - Type: number
19
    }]
20
  }
21
});