SandroBabic

EEC - Checkout - Euro Tours

Mar 27th, 2021
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. window.dataLayer = window.dataLayer || [];
  3. window.dataLayer.push({
  4.     'event': 'eec.checkout',                // name of an event. In this case, always stays as eec.checkout
  5.     'ecommerce': {                          // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
  6.         'checkout': {                       // name of an action. In this case, always stays as checkout
  7.             'actionField': {    
  8.                 'step': 1                   // number of the checkout step that a user has entered (must always be 1 in this situation)
  9.             },
  10.             'products': [{                  // list of properties user had watched before entering the checkout
  11.                 'name': 'Villa Sana',      // name of a property that is currently viewed
  12.                 'id': 'ET-0028',           // id of a property
  13.                 'price': '1100.00',          // total reservation value
  14.                 'category': 'Villa with pool',      // category of a product      
  15.                 'quantity': 1               // always 1 in our case
  16.             }]
  17.         }
  18.     }
  19. });
  20. </script>
Advertisement
Add Comment
Please, Sign In to add comment