View difference between Paste ID: e5rUgT4p and N0BxNWvr
SHOW: | | - or go back to the newest paste.
1
<script>
2
window.dataLayer = window.dataLayer || [];
3
window.dataLayer.push({
4-
  event: 'Enter Payment',			// name of an event. In this case, always stays as Enter Payment
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: 2,						// number of the checkout step in which a user chose the delivery method (must always be 2 in this situation) 
8+
        step: 1,						// number of the checkout step in which a user chose the delivery method 
9-
        option: 'visa'				// payment option that a visitor has chosen
9+
        option: 'delivery'				// delivery or pick up option selected by the customer
10
      }
11
    }
12
  }