Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- dataLayer.push({
- 'transactionId': '{{TRANSACTION ID}}', //(Required) Unique transaction identifier. String
- 'transactionAffiliation': '{{Buy/sell}}', // (Optional), možemo iskoristiti ovaj parametar da odvojimo prodajne od kupovnih transakcija. String
- 'transactionTotal': 38.26, //(Required) ECD revenue od transakcije. numeric
- 'transactionTax': 1.29, //optional, ne treba ništa
- 'coupon': {{coupon used}}, //optional, kupon kod koji su iskoristili ukoliko jesu
- 'paymentType': {{paymentType}}, //optional, tip placanja, bank ili card
- 'transactionShipping': 5, //(optional), ne treba ništa
- 'transactionProducts': [{ //(optional) List of items purchased in the transaction. Array of product objects
- 'sku': 'DD44', //(Required) ID kriptovalute
- 'name': 'Bitcoin (BTC)', //(Required) Naziv kriptovalute
- 'category': 'Cryptocurrency', // (Optional) Cryptocurrency
- 'price': 11.99, //(Required) Unit Price. numeric
- 'quantity': 1 //(Required) Number of items. numeric
- },{
- 'sku': 'AA1243544', //(Required) ID kriptovalute
- 'name': 'Ethereum (ETH)', //(Required) Naziv kriptovalute
- 'category': 'Cryptocurrency', // (Optional) Cryptocurrency
- 'price': 9.99, //(Required) Unit Price. numeric
- 'quantity': 0.66 //(Required) Number of items. numeric
- 'event': 'transactionCompleted' // custom event za transakciju
- }]
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement