dusanmiha

VIP - EEC - Promotion Clicks

Dec 7th, 2020
65
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.promoClick',                  // name of an event. In this case, always stays as eec.promoClick
  5.     'ecommerce': {                              // ecommerce object. This is the essential part of tracking. New data must always be pushed to this object
  6.         'promoClick': {                         // name of an action. In this case, always stays as promoClick
  7.           'promotions': [                       // list of banners that a user has clicked. usually it contains only one promotion
  8.            {
  9.              'id': '{{banner ID}}',         // id of a banner        
  10.              'name': '{{banner Name}}',         // name of a banner
  11.              'creative': '{{Banner Type}}', // type of a banner
  12.              'position': '{{Banner Position}}'              // position of a banner
  13.             }]
  14.         }
  15.   }
  16. });
  17. </script>
RAW Paste Data