FilipFD

eec.productClick - theOFMP

Mar 30th, 2021 (edited)
84
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.productClick',        // Name of the event. In this case, always stays as 'eec.productClick'.
  5.     'ecommerce': {                      // The Ecommerce object. This is the essential part of the tracking. New EEC data must always be pushed using this object.
  6.       'click': {                        // Type of an ecommerce action. In this case, always stays as 'click'.
  7.         'actionField': {
  8.             'list': 'New and Popular'                   // The list name where the product was clicked.
  9.         },  
  10.         'products': [{
  11.             'name': 'REDA ESP - Gas Handler',                       // The name of the product that was clicked.
  12.             'id': 'Reda-Esp-Gas-Handler',                           // The ID (SKU) of the product.
  13.             'price': '4125.00',                                     //  The price of the product.
  14.             'brand': 'schlumberger',                                // The brand name of the product.
  15.             'category': 'Production/Electrical-Submersible-Pumps',  // Category of the product.
  16.             'variant': 'Base Product',                              // The product variant. If there are no variants, always send Base Product.
  17.             'position': '3',                                        // The position of the item in the list (e.g. was it the first item in the list, the second, the third, etc.).
  18.             'dimension12': 'sals',                                  // The vendor of the product.
  19.             'dimension13': 'Reda-Esp-Gas-Handler'                   // SKU of the selected product variant. If no variant is yet selected, send the SKU of the base product.
  20.        }]
  21.      }
  22.   }
  23. });
  24. </script>
Add Comment
Please, Sign In to add comment