FilipFD

eec.productDetail - theOFMP

Mar 30th, 2021 (edited)
102
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.productDetail',                     // Name of the event. In this case, always stays as 'eec.productDetail'.
  5.   'ecommerce': {                                    // The Ecommerce object. This is the essential part of the tracking. New EEC data must always be pushed using this object.
  6.     'detail': {                                     // Type of an ecommerce action. In this case, always stays as 'detail'.
  7.       'products': [{                  
  8.         'name': 'REDA ESP - Gas Handler',                       // The name of the product that was viewed. Always include it.
  9.         'id': 'Reda-Esp-Gas-Handler',                           // The ID (SKU) of the product. Always include it.
  10.         'price': '11130.00',                                    // The price of the product.
  11.         'brand': 'schlumberger',                                // The brand name of the product.
  12.         'category': 'Production/Electrical-Submersible-Pumps',  // Category of the product.
  13.         'variant': 'REDA ESP - Gas Handler 75% GVF',            // The product variant. If there are no variants, or if the base product was viewed, send Base Product.
  14.         'dimension12': 'sals',                                  // The vendor of the product.
  15.         'dimension13': '102761535'                              // SKU of the selected product variant. If the base product was viewed, send base product's SKU.
  16.        }]
  17.      }
  18.    }
  19. });
  20. </script>
Add Comment
Please, Sign In to add comment