SHOW:
|
|
- or go back to the newest paste.
| 1 | window.dataLayer = window.dataLayer || []; | |
| 2 | window.dataLayer.push({
| |
| 3 | event: 'purchase', | |
| 4 | transaction_value_eur: '10920.00', //Revenue of total transaction in EUR. | |
| 5 | ecommerce: {
| |
| 6 | currency: 'RSD', //Required. Transaction Currency - Type: Numeric | |
| 7 | value: 10920, //Transaction Revenue - Type: Numeric | |
| 8 | tax: 7.18, //Transaction Tax - Type: Numeric | |
| 9 | shipping: 10.00, //Transaction Shipping - Type: Numeric | |
| 10 | affiliation: 'My Parka Store', //Optional. Transaction Affiliation - - Type: string | |
| 11 | transaction_id: 'p115-20202000', //Required. Transaction ID - Type: String | |
| 12 | coupon: '20%off', //Coupon Code of applicable - Type: String | |
| 13 | items: [{
| |
| 14 | item_name: 'Product 1', //Product Name - Type: string | |
| 15 | item_id: 'mp1122', //Product ID/SKU - Type: string | |
| 16 | price: '31.10', //Product price - Type: numeric | |
| 17 | item_brand: 'product brand', //Product Brand- Type: string | |
| 18 | item_category: 'Apparel', //Product Category - Type: string | |
| 19 | item_category2: 'Coats', //Product Sub-Category 1 - Type: string | |
| 20 | item_category3: 'Wool', //Product Sub-Category 2 - Type: string | |
| 21 | item_category4: 'Unisex', //Product Sub-Category 3 - Type: string | |
| 22 | item_category5: 'cat5', //Product Sub-Category 4 - Type: string | |
| 23 | item_variant: 'Navy blue', //Variant of other product like size, color et c - Type: string | |
| 24 | quantity: '3' //Product quantity - Type: integer | |
| 25 | },{
| |
| 26 | item_name: 'stain removal', | |
| 27 | item_id: 'psr1332', | |
| 28 | price: '5.99', | |
| 29 | item_brand: 'product brand', | |
| 30 | item_category: 'Apparel', | |
| 31 | item_category2: 'Utility', | |
| 32 | item_category3: 'Care product', | |
| 33 | item_category4: 'Unisex', | |
| 34 | item_category5:'cat5', | |
| 35 | quantity: '1' | |
| 36 | }] | |
| 37 | } | |
| 38 | }); |