dusanmiha

Hybris - Product Impressions

Jul 2nd, 2021 (edited)
1,111
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': 'RSD',              // The currency which is set by the visitor.              
  7.     'impressions': [{          
  8.       'name': 'Electrolux Mašina za sušenje veša EDP 2074PDW',                       // The name of the product that is displayed. Always include it.
  9.       'id': '000000000001101970',                           // The ID (SKU) of the product. Always include it.
  10.       'price': '104,154.00',                                        // The price of the product.
  11.       'brand': 'Electrolux',                                // The brand name of the product.
  12.       'category': 'Kućni aparati / Bela Tehnika / Veš Mašine / Mašine za sušenje veša',   // Category of the product.
  13.       'variant': '{{product variant}}',                             // The product variant. If there are no variants, always send Base Product.
  14.       'list': '{{product list}}',                               // 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.      },        
  17.      {
  18.       'name': 'HOTPOINT ARISTON Mašina za pranje i sušenje veša AQD 1071D 69 EU A',                 
  19.       'id': '000000000001103549',              
  20.       'price': '108,527.00',               
  21.       'brand': 'Hotpoint Ariston',             
  22.       'category': 'Kućni aparati / Bela Tehnika / Veš Mašine / Mašine za sušenje veša',          
  23.       'variant': '{{product variant}}',            
  24.       'list': '{{Product List}}',                  
  25.       'position': '2'              
  26.      }]
  27.   }
  28. });
  29. </script>
RAW Paste Data