Advertisement
LouisDon

eec.addToCartFirstStop

Jan 27th, 2020
140
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.addToCart',       // name of an event. In this case, always stays as eec.addToCart
  5.     'ecommerce': {                  // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
  6.         'currencyCode': 'EUR',          // the currency which is currently used by a visitor
  7.         'add': {                        // name of an action. In this case, always stays as add
  8.             'actionField': {          
  9.                 'list': 'PKW-Winter'          // optional. name of a list from which the product was added to a cart  
  10.               },      
  11.             'products': [{              // list of products added to a cart. Can contain multiple products at the same time
  12.                 'name': 'CONTINENTAL WINTERCONT TS-810S 245/45 R19 102 V',      // name of a product that was added to a cart
  13.                 'id': '000000000000088160',       // id of a product
  14.                 'price': '264.00',      // price of a product
  15.                 'brand': 'CONTINENTAL',     // brand/vendor of a product
  16.                 'category': 'PKW-Winter',  // category of a product
  17.                 'variant': '',     // product variant. If there are no variants, exclude this key from the dataLayer.push
  18.                 'quantity': 4
  19.             }]
  20.         }
  21.     }
  22. });
  23. </script>
Advertisement
RAW Paste Data Copied
Advertisement