Advertisement
GiacomoGalanti

checkout step 3

Dec 2nd, 2020
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. <script>
  2. var dataLayer = window.dataLayer || [];
  3. dataLayer.push({
  4. 'event': 'payment_method',
  5. 'ecommerce': {
  6. 'checkout': {
  7. 'actionField': {'step': 3, 'option': 'paypal': }, // option change depends of the paymenth method
  8. 'products': [{
  9. 'name': 'carne secca',
  10. 'id': '8773',
  11. 'price': 11.99,
  12. 'brand': 'jack links',
  13. 'category': [’Best selling products',
  14. 'Carne secca',
  15. 'Carne secca (removed)',
  16. 'Jack Link’s',
  17. 'New products',
  18. 'Novità',
  19. 'Products',
  20. 'Snack Salati Americani',
  21. 'Snack Salati Americani (Removed)',
  22. 'Tutto il cibo',
  23. 'Tutto il cibo americano’
  24. ],
  25. 'quantity': 2,
  26. 'coupon': 'HappyT2122' //needs to be filled if coupon is used on a single product
  27.  
  28. },
  29. {
  30. 'name': 'Doritos al formaggio',
  31. 'id': '2873432',
  32. 'price': 11.99,
  33. 'brand': 'Demobrand',
  34. 'category': 'New products',
  35. 'Novità',
  36. 'Products',
  37. 'Snack Salati Americani',
  38. 'Snack Salati Americani (Removed)',
  39. 'Tutto il cibo',
  40. 'Tutto il cibo americano’
  41. ',
  42. 'quantity': 2,
  43. 'coupon': ''
  44. }]
  45. }
  46. }
  47. });
  48. </script>
  49.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement