Advertisement
LouisDon

eec.checkout1WMF

Feb 3rd, 2020
246
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': 'eec.checkout',                // 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': {                       // name of an action. In this case, always stays as checkout
  7.             'actionField': {  
  8.                 'step': 1                   // number of the checkout step that a user has entered (must always be 1 in this situation)
  9.             },
  10.             'products': [{                  // list of products a user had in a cart before entering the checkout
  11.                 'name': 'WMF Profi Resist Servierpfanne, Ø 28 cm',      // name of a product that is currently viewed
  12.                 'id': '',           // id of a product. Hier CMMF Nummer.
  13.                 'price': '330.00',          // price of a product
  14.                 'brand': 'WMF',         // brand/vendor of a product
  15.                 'category': 'Pfannen',      // category of a product
  16.                 'variant': 'Silver',        // product variant. If there are no variants, exclude this key from the dataLayer.push
  17.                 'quantity': 1
  18.                 'dimension56': '',            // A Product-scoped Custom Dimension for index number N (old SKU)
  19.                 'dimension57': '',            // A Product-scoped Custom Dimension for index number N (Magento_Id)
  20.                 'dimension58': '',            // A Product-scoped Custom Dimension for index number N (In/Out of Stock)
  21.                 'dimension59': ''            // A Product-scoped Custom Dimension for index number N (Is Club Sale - true/false)
  22.             }]
  23.         }
  24.     }
  25. });
  26. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement