SandroBabic

EEC - ProductClick - 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.productClick',    // name of an event. In this case, always stays as eec.productClick
  5.     'ecommerce': {                  // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
  6.       'click': {                    // name of an action. In this case, always stays as click
  7.         'actionField': {
  8.             'list': 'Search Results'          //name of a list in which the property was clicked  
  9.         },  
  10.         'products': [{
  11.             'name': 'Villa Sana',      // name of a property that was clicked. Always include it.
  12.             'id': 'ET-0028',       // id of a property. Always include it.
  13.             'category': 'Villa with pool',  // category of a property
  14.             'position': '2'         // number of a position (in which a property was visible at that time)
  15.        }]
  16.      }
  17.   }
  18. });
  19. </script>
Advertisement
Add Comment
Please, Sign In to add comment