Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'checkoutOption', // name of an event. In this case, always stays as checkoutOption
- ecommerce: { // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
- checkout_option: { // name of an action. In this case, always stays as checkout_option
- actionField: {
- step: step, // number of the checkout step in which a user chose an action for the delivery address - add, edit or delete
- option: 'add' // payment option that a visitor has chosen (add, edit or delete)
- }
- }
- }
- });
- </script>
Add Comment
Please, Sign In to add comment