dusanmiha

VIP - EEC - Checkout Option Step 4

Dec 2nd, 2020 (edited)
87
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.checkoutOption',          // 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_option: {                  // name of an action. In this case, always stays as checkout_option
  7.       actionField: {
  8.         step: 4,                        // number of the checkout step in which a user chose the delivery method (must always be 4 in this situation)
  9.         option: '{{Odabir načina dostave}}'    // delivery option that a visitor has chosen, ex: Dostava na Adresu, Dostava na prodajno mesto
  10.       }
  11.     }
  12.   }
  13. });
  14. </script>
RAW Paste Data