Advertisement
dpolec

EEC Purchase

Feb 18th, 2020 (edited)
264
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.purchase',                // name of an event. In this case, always stays as eec.purchase
  5.     'ecommerce': {                          // ecommerce object. This is the essential part of tracking. New EE data must always be                         pushed to this object
  6.         'currencyCode': 'PLN',
  7.         'purchase': {                       // name of an action. In this case, always stays as purchase
  8.             'actionField': {
  9.                 'id': '155',                // order id. required
  10.                 'affiliation': 'affiliate', // name of the affiliate. or affiliate id
  11.                 'revenue': '50.00',         // order revenue (including tax and shipping)
  12.                 'tax':'12.00',              // taxes (excluding shipping)
  13.                 'shipping': '12.00',        // shipping cost
  14.                 'coupon' : 'zimowa2020'     // discount
  15.             },
  16.             'products': [{                  // list of products a user has purchased
  17.                 'name': 'Citizen - SUPER TITANIUM. MODEL: AW0060-11P',      // name of a product that is currently viewed
  18.                 'id': 'CIT30283',           // id of a product
  19.                 'price': '330.00',          // price of a product
  20.                 'brand': 'Under Armour',     // brand/vendor of a product
  21.                 'category': 'Watches',      // category of a product
  22.                 'variant': 'S',        // product variant. If there are no variants, exclude this key from the dataLayer.push
  23.                 'quantity' : 1,              // product quantity
  24.                 'dimension13' : 'A',            // Grupa produktowa Symfonia
  25.                 'dimension14' : 'natychmiast!', // Wysyłamy w:  
  26.                 'dimension16' : '25',           // Liczba ocen:
  27.                 'dimension17' : '4,7'           // Średnia ocen
  28.              }]
  29.         }  
  30.   }
  31. });
  32. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement