Advertisement
ju1ius

EEC - Promo view

Apr 11th, 2019
593
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.promoView',                   // name of an event. In this case, always stays as eec.promoView
  5.     'ecommerce': {                              // ecommerce object. This is the essential part of tracking. New data must always be pushed to this object
  6.         'promoView': {                          // name of an action. In this case, always stays as promoView
  7.           'promotions': [                       // list of promotions or banners displayed to a user
  8.            {
  9.              'id': 'summer_sale2019_1',         // id of a banner        
  10.              'name': 'Summer sale 2019_1',      // name of a banner
  11.              'creative': 'Home Page Carousel',  // type of a banner
  12.              'position': 'Slide 1'              // position of a banner
  13.             },             
  14.            {
  15.              'id': 'summer_sale2019_2',          
  16.              'name': 'Summer sale 2019_2',
  17.              'creative': 'Sidebar',
  18.              'position': 'slot 1'      
  19.             }]
  20.         }
  21.   }
  22. });
  23. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement