FilipFD

eec.productImpression - theOFMP

Mar 30th, 2021 (edited)
152
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.productImpression',     // Name of the event. In this case, always stays as 'eec.productImpression'.
  5.   'ecommerce': {                        // The Ecommerce object. This is the essential part of the tracking. New EEC data must always be pushed using this object.
  6.     'currencyCode': 'USD',              // The currency which is set by the visitor.              
  7.     'impressions': [{          
  8.       'name': 'REDA ESP - Gas Handler',                     // The name of the product that is displayed. Always include it.
  9.       'id': 'Reda-Esp-Gas-Handler',                             // The ID (SKU) of the product. Always include it.
  10.       'price': '4125.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': 'Base Product',                            // The product variant. If there are no variants, always send Base Product.
  14.       'list': 'New and Popular',                                // The list name where the impression was viewed.
  15.       'position': '1',                                      // The position of the item in the list (e.g. was it the first item in the list, the second, the third, etc.).
  16.       'dimension12': 'sals',                                    // The vendor of the product.
  17.       'dimension13': 'Reda-Esp-Gas-Handler'                     // SKU of the selected product variant. If no variant is yet selected, send the SKU of the base product.
  18.      },        
  19.      {
  20.       'name': 'Tiger Bullets',                 
  21.       'id': 'Tiger-Bullets-Lcm',               
  22.       'price': '31.30',            
  23.       'brand': 'federal',              
  24.       'category': 'Drilling/Fluids',           
  25.       'variant': 'Base Product',           
  26.       'list': 'New and Popular',                   
  27.       'position': '2',
  28.       'dimension12': 'miswaco',
  29.       'dimension13': 'Tiger-Bullets-Lcm'               
  30.      }]
  31.   }
  32. });
  33. </script>
Add Comment
Please, Sign In to add comment