Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'purchase',
- transaction_value_eur: '10920.00', //Revenue of total transaction in EUR.
- ecommerce: {
- currency: 'RSD', //Required. Transaction Currency - Type: Numeric
- value: 10920, //Transaction Revenue - Type: Numeric
- tax: 7.18, //Transaction Tax - Type: Numeric
- shipping: 10.00, //Transaction Shipping - Type: Numeric
- affiliation: 'My Parka Store', //Optional. Transaction Affiliation - - Type: string
- transaction_id: 'p115-20202000', //Required. Transaction ID - Type: String
- coupon: '20%off', //Coupon Code of applicable - Type: String
- items: [{
- item_name: 'Product 1', //Product Name - Type: string
- item_id: 'mp1122', //Product ID/SKU - Type: string
- price: '31.10', //Product price - Type: numeric
- item_brand: 'product brand', //Product Brand- Type: string
- item_category: 'Apparel', //Product Category - Type: string
- item_category2: 'Coats', //Product Sub-Category 1 - Type: string
- item_category3: 'Wool', //Product Sub-Category 2 - Type: string
- item_category4: 'Unisex', //Product Sub-Category 3 - Type: string
- item_category5: 'cat5', //Product Sub-Category 4 - Type: string
- item_variant: 'Navy blue', //Variant of other product like size, color et c - Type: string
- quantity: '3' //Product quantity - Type: integer
- },{
- item_name: 'stain removal',
- item_id: 'psr1332',
- price: '5.99',
- item_brand: 'product brand',
- item_category: 'Apparel',
- item_category2: 'Utility',
- item_category3: 'Care product',
- item_category4: 'Unisex',
- item_category5:'cat5',
- quantity: '1'
- }]
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement