Advertisement
Jawad_Khan

EEC - Checkout Step 1 - Klondike

Dec 28th, 2021
158
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: 'InitiateCheckout',            // name of an event.
  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: 1,                        // number of the checkout step in which a user chose the delivery method
  9.         option: 'delivery'              // delivery or pick up option selected by the customer
  10.       }
  11.     }
  12.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement