Advertisement
FilipFD

Untitled

Apr 1st, 2021
66
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.promotionClick',             
  5.     'ecommerce': {                              // ecommerce object. This is the essential part of tracking. New data must always be pushed to this object
  6.         'promoClick': {                        
  7.           'promotions': [{
  8.              'id': 'ofmp-bornbred-banner',                      // Unique identifier for the promotion that was clicked.      
  9.              'name': 'Born and bred in Texas ',             // Name of the promotion.
  10.              'creative': 'Gray Banner Homepage',        // A name for the creative where the promotion banner was showing.
  11.              'position': 'slot1'                    // Some way to distinguish the position of the promotion in the creative (e.g. first slide of a carousel).
  12.             }]
  13.         }
  14.   }
  15. });
  16. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement