Advertisement
GiacomoGalanti

Purchase

Jun 2nd, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1.  
  2. <script>
  3. var dataLayer = window.dataLayer || [];
  4. dataLayer.push({
  5. 'event': 'transaction',
  6. 'ecommerce': {
  7. 'purchase': {
  8. 'actionField': {
  9. 'id': '2873',
  10. 'revenue': '122.97',
  11. 'tax':'12',
  12. 'shipping': '',
  13. 'coupon': 'sconto dig 2020' //needs to be filled if coupon is used on the entire order
  14. },
  15. 'products': [{
  16. 'name': 'biglietti da visita',
  17. 'id': '8773',
  18. 'price': 11.99,
  19. 'brand': 'venditore 222',
  20. 'category': 'stampa',
  21. 'quantity': 1,
  22. 'coupon': 'HappyT2122' //needs to be filled if coupon is used on a single product
  23.  
  24. },
  25. {
  26. 'name': 'logo',
  27. 'id': '2873',
  28. 'price': 11.99,
  29. 'brand': 'venditore 222',
  30. 'category': 'web design',
  31. 'quantity': 2,
  32. 'coupon': ''
  33. }]
  34. }
  35. }
  36. });
  37. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement