Advertisement
Jawad_Khan

EEC - Checkout Step 3

Sep 23rd, 2021
84
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': 'Enter Payment',                // name of an event. In this case, Enter Payment
  5.     'eventID': 'PI-1630317410566-tp6igfwsz' //eventID has to be passed for event deduplication
  6.     'ecommerce': {                          // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
  7.         'checkout': {                       // name of an action. In this case, always stays as checkout
  8.             'actionField': {    
  9.                 'step': 3                   // number of the current checkout step that a user has entered (must always be 3 in this situation)
  10.             }
  11.     }
  12.   }
  13. });
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement