Advertisement
LouisDon

eec.productImpressionWMF

Dec 9th, 2019
239
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 an event. In this case, always stays as eec.productImpression
  5.     'ecommerce': {                          // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
  6.         'currencyCode': 'EUR',              // the currency which is currently set by a visitor                      
  7.         'impressions': [                    // type of an ecommerce action. In this case, always stays as impressions
  8.          {
  9.             'name': 'WMF Profi Plus Multipresse, 35x 13cm',      // name of a product that is displayed. Always include it.
  10.             'id': '',               // id of a product. Always include it. Hier CMMF Nummer.
  11.             'price': '49.95',              // price (without tax) of a product
  12.             'brand': 'WMF',             // brand/vendor of a product
  13.             'category': 'Küchenhelfer',          // category of a product
  14.             'list': 'Geschenkewelt',                 // name of a product list. See all the possible list names in the specification
  15.             'position': '1',                 // number of a position (in which a product was visible at that time)
  16.             'dimension56': '',            // A Product-scoped Custom Dimension for index number N (old SKU)
  17.             'dimension57': ''            // A Product-scoped Custom Dimension for index number N (Magento_Id)
  18.             'dimension58': ''            // A Product-scoped Custom Dimension for index number N (In/Out of Stock)
  19.             'dimension59': ''            // A Product-scoped Custom Dimension for index number N (Is Club Sale - true/false)
  20.         },        
  21.          {
  22.             'name': 'WMF Haushaltschere, 21 cm, schwarz',      
  23.             'id': '',    
  24.             'price': '13.95',
  25.             'brand': 'WMF',
  26.             'category': 'Küchenhelfer',
  27.             'list': 'VIP',
  28.             'position': '2',
  29.             'dimension56': '',            // A Product-scoped Custom Dimension for index number N (old SKU)
  30.             'dimension57': '',            // A Product-scoped Custom Dimension for index number N (Magento_Id)
  31.             'dimension58': '',            // A Product-scoped Custom Dimension for index number N (In/Out of Stock)
  32.             'dimension59': ''            // A Product-scoped Custom Dimension for index number N (Is Club Sale - true/false)
  33.              }]
  34.     }
  35. });
  36. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement