SHARE
TWEET

EE- Product Click

graybar Nov 12th, 2019 82 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.
  6.     New EE data must always be pushed to this object
  7.       'click': {                    // name of an action. In this case, always stays as click
  8.         'actionField': {
  9.             'list': 'Category-Results' //name of a list in which the product was clicked  
  10.         },  
  11.         'products': [{
  12.             'name':  'Mighty Mo&#174', // name of a product that was clicked. Always include it.
  13.             'id': '25645386',       // id of a product. Always include it.
  14.             'brand': 'Ortronics (Lagrand)', // brand/vendor of a product
  15.             'category': 'Network Racks and Cabinets',   // category of a product
  16.             'position': '1'         // number of a position (in which a product was visible at that time)
  17.        }
  18.      }
  19.   });
  20. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top