Advertisement
Guest User

CSI | Purchase dataLayer

a guest
Nov 15th, 2019
914
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. window.dataLayer = window.dataLayer || [];
  2. dataLayer.push({
  3. 'event': 'Purchase',
  4. 'ecommerce': {
  5. 'currencyCode': 'USD',
  6. 'purchase': {
  7. 'actionField': {
  8. 'id': '54872sde', // transaction id, required
  9. 'revenue': 2698.00, // Total transaction value (incl. Tax )
  10. 'tax': 0.00, // Total tax charged with the transaction.
  11. 'shipping': 0,
  12. 'coupon': 'VIP' // Coupon code, if coupon was applied
  13. },
  14. 'products': [{
  15. 'name': 'Single Session',
  16. 'id': 'IWCE2020SS', // The id of the pass. Product Name or ID are required.
  17. 'price': '275', // Price from actual column
  18. 'category': 'IWCE20' // the name of the event
  19. 'quantity': 1
  20. },
  21. {
  22. 'name': 'PRIORITY LOUNGE',
  23. 'id': 'IWCE2020LOUNGE', // The id of the pass. Product Name or ID are required.
  24. 'price': '300', // Price from actual column
  25. 'category': 'IWCE20' // the name of the event
  26. 'quantity': 1
  27. }]
  28. }
  29. }
  30. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement