SHOW:
|
|
- or go back to the newest paste.
| 1 | window.dataLayer = window.dataLayer || []; | |
| 2 | window.dataLayer.push({
| |
| 3 | event: 'purchase', | |
| 4 | - | process: 'rnw', //Variable value. ID/name of the selected process. |
| 4 | + | |
| 5 | currency: 'RSD', //Required. Transaction Currency - Type: string | |
| 6 | value: 200.00, //Transaction Revenue - Type: number | |
| 7 | - | value: 20000.00, //Transaction Revenue - Type: number |
| 7 | + | tax: 0.00, //Transaction Tax - Type: number |
| 8 | - | tax: 4000.00, //Transaction Tax - Type: number |
| 8 | + | |
| 9 | affiliation: 'onlinetopup', //Optional. Transaction Affiliation - Type: string | |
| 10 | - | affiliation: 'Online Store', //Optional. Transaction Affiliation - - Type: string |
| 10 | + | transaction_id: '1985_1675416726' //Required. Transaction ID - Type: string |
| 11 | - | transaction_id: 'abc123', //Required. Transaction ID - Type: string |
| 11 | + | |
| 12 | - | coupon: '20%off', //Coupon Code if applicable - Type: string |
| 12 | + | item_name: 'onlinetopup 200.00', //Product Name - Type: string |
| 13 | item_id: 'dopuna200', //Product ID/SKU - Type: string | |
| 14 | - | item_name: 'NEO 15 - Redmi Note 10 Pro', //Product Name - Type: string |
| 14 | + | price: 200.00, //Product price - Type: number |
| 15 | - | item_id: 'SPO_SRPP4N - XIAM2101K6', //Product ID/SKU - Type: string |
| 15 | + | |
| 16 | - | price: 9600.00, //Product price - Type: number |
| 16 | + | |
| 17 | item_brand: 'A1', //Product Brand - Type: string | |
| 18 | item_category: 'dopuna', //Product Category - Type: string | |
| 19 | - | item_brand: 'a1 - Xiaomi', //Product Brand - Type: string |
| 19 | + | item_category2: 'dopuna200', //Product Sub-Category 1 - Type: string |
| 20 | - | item_category: 'Tarifa - Telefon', //Product Category - Type: string |
| 20 | + | |
| 21 | - | item_category2: 'item_category2', //Product Sub-Category 1 - Type: string |
| 21 | + | |
| 22 | - | item_category3: 'item_category3', //Product Sub-Category 2 - Type: string |
| 22 | + | |
| 23 | - | item_category4: 'item_category4', //Product Sub-Category 3 - Type: string |
| 23 | + |