Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- var dataLayer = window.dataLayer || [];
- dataLayer.push({
- 'event': 'transaction',
- 'ecommerce': {
- 'purchase': {
- 'actionField': {
- 'id': '2873',
- 'revenue': '122.97',
- 'tax':'12',
- 'shipping': '',
- 'coupon': 'sconto dig 2020' //needs to be filled if coupon is used on the entire order
- },
- 'products': [{
- 'name': 'biglietti da visita',
- 'id': '8773',
- 'price': 11.99,
- 'brand': 'venditore 222',
- 'category': 'stampa',
- 'quantity': 1,
- 'coupon': 'HappyT2122' //needs to be filled if coupon is used on a single product
- },
- {
- 'name': 'logo',
- 'id': '2873',
- 'price': 11.99,
- 'brand': 'venditore 222',
- 'category': 'web design',
- 'quantity': 2,
- 'coupon': ''
- }]
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement