Advertisement
graybar

EE- Product List Impression

Nov 12th, 2019
245
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.
  6.   New EE data must always be pushed to this object
  7.         'impressions': [                // type of an ecommerce action. In this case, always stays as impressions
  8.          {
  9.             'name': 'Mighty Mo&#174',   // name of a product that is displayed. Always include it.
  10.             'id': '25645386',          // id of a product. Always include it.
  11.             'brand': 'Ortronics (Lagrand)',   // brand/vendor of a product
  12.             'category': 'Network Racks and Cabinets',          // category of a product
  13.             'list': 'Category-Results', // name of a product list. See all the possible list names in the document
  14.             'position': '1'             // number of a position (in which a product was visible at that time)
  15.         },        
  16.         {
  17.             'name': 'Shelf Liner, 36 in.',      
  18.             'id': '25630914',    
  19.             'brand': 'Lyon',
  20.             'category': 'Network Racks and Cabinets',
  21.             'list': 'Category-Results',
  22.             'position': '2'     }]
  23.     }
  24.     });
  25.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement