Advertisement
northwoods

eec.productDetail

Apr 22nd, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. window.dataLayer  = window.dataLayer || [];
  2. window.dataLayer.push({
  3.     'event': 'eec.productDetail',      
  4.     'ecommerce': {                     
  5.         'detail': {                     // name of an action. In this case, always stays as detail
  6.           'actionField': {'list': 'main'},    // optional but great to include.  Search; Map; Cruise Itinerary; Port List; Destinations
  7.           'products': [{
  8.             'name': 'HELICOPTER ICEFIELD EXCURSION',      // name of tour that is currently viewed. Always include it.
  9.             'id': '001392',             // id of tour. Always include it.
  10.             'price': '363.00',          // tour price; feel free to use $0, but include the key
  11.             'brand': 'ShoreTrips',          // brand/vendor of a product
  12.             'category': 'JUNEAU ALASKA',        // tour category
  13.             'variant': 'Silver'         // product variant. If there are no variants, exclude this key from the dataLayer.push
  14.            }]
  15.          }
  16.     }
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement