Advertisement
pijushsaha

Standard Ecommerce JS Code

Oct 19th, 2021
159
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 1 0
  1. <script>
  2. window.dataLayer = window.dataLayer || [];
  3. dataLayer.push({
  4. 'transactionId': '1234',
  5. 'transactionAffiliation': 'Acme Clothing',
  6. 'transactionTotal': 38.26,
  7. 'transactionTax': 1.29,
  8. 'transactionShipping': 5,
  9. 'transactionProducts': [{
  10. 'sku': 'DD44',
  11. 'name': 'T-Shirt',
  12. 'category': 'Apparel',
  13. 'price': 11.99,
  14. 'quantity': 1
  15. },{
  16. 'sku': 'AA1243544',
  17. 'name': 'Socks',
  18. 'category': 'Apparel',
  19. 'price': 9.99,
  20. 'quantity': 2
  21. }]
  22. });
  23. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement