Advertisement
SandroBabic

Data Layer Code Example - Lovely Istria

Jan 28th, 2021
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <script>
  2. window.dataLayer = window.dataLayer || [];
  3. dataLayer.push({
  4. 'event': 'transaction',
  5. 'transactionId': '1234',
  6. 'transactionTotal': 1200,
  7. 'transactionProducts': [{
  8. 'sku': 'DD44',
  9. 'name': 'Villa Toscana',
  10. 'category': 'Pula',
  11. 'price': 1200,
  12. 'quantity': 1
  13. }]
  14. });
  15. </script>
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement