Advertisement
dusanmiha

VIP - EEC - Promotion Views

Dec 7th, 2020
203
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': '{{Banner ID 1}}',           // id of a banner        
  10.              'name': '{{Banner Name 1}}',       // name of a banner
  11.              'creative': '{{banner creative 1}}',   // type of a banner ex. Home Page Carousel
  12.              'position': '{{Banner position 1}}'            // position of a banner ex. Carousel 1
  13.             },             
  14.            {
  15.              'id': '{{Banner ID 2}}',          
  16.              'name': '{{Banner Name 2}}',
  17.              'creative': '{{banner creative 2}}',
  18.              'position': '{{Banner position 2}}'      
  19.             }]
  20.         }
  21.   }
  22. });
  23. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement