SandroBabic

EEC - ProductImpression - Euro Tours

Mar 27th, 2021 (edited)
93
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. New EE data must always be pushed to this object                    
  6.         'impressions': [                    // type of an ecommerce action. In this case, always stays as impressions
  7.          {
  8.             'name': 'Villa Catarina',      // name of a property that is displayed. Always include it.
  9.             'id': 'ET-0023',                // id of a property. Always include it.
  10.             'category': 'Villa with pool',          // category of a property (e.g. villa or apartment)
  11.             'list': 'Search Results',                   // name of a list with properties displayed. See all the possible list names in the specification
  12.             'position': '1'                 // number of a position (in which a property was visible at that time)
  13.         },         
  14.          {
  15.             'name': 'Villa Sana',      
  16.             'id': 'ET-0028',    
  17.             'category': 'Villa with Pool',
  18.             'list': 'Search Results',
  19.             'position': '2'     }]
  20.     }
  21. });
  22. </script>
Advertisement
Add Comment
Please, Sign In to add comment