FilipFD

eec.purchase - theOFMP

Apr 1st, 2021 (edited)
156
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',                     
  5.   'ecommerce': {                                // The Ecommerce object. This is the essential part of the tracking. New EEC data must always be pushed using this object.
  6.     'currencyCode': 'USD',                      // The currency which is set by the visitor.    
  7.     'purchase': {  
  8.       'actionField': {
  9.         'id': '123456',                         // The unique order ID of the transaction. Should match the actual ID of the order.
  10.         'revenue': '13008.00',                  // Total transaction value (incl. tax and shipping)
  11.         'tax':'0.00',
  12.         'shipping': '0.00',
  13.         'coupon': 'coupon name'                 // The coupon code that was used for the entire transaction.
  14.       },
  15.       'products': [{                                            // Should contain all the purchased products.
  16.         'name': 'REDA ESP - Gas Handler',                       // The name of the product that is purchased. Always include it.
  17.         'id': 'Reda-Esp-Gas-Handler',                           // The ID (SKU) of the product. Always include it.
  18.         'price': '11130.00',                                    // The price of the product.
  19.         'brand': 'schlumberger',                                // The brand name of the product.
  20.         'category': 'Production/Electrical-Submersible-Pumps',  // Category of the product.
  21.         'variant': 'REDA ESP - Gas Handler 75% GVF',            // The product variant. If there are no variants, always send Base Product.
  22.         'quantity': 1,
  23.         'dimension12': 'sals',                                  // The vendor of the product.
  24.         'dimension13': '102761535'                              // SKU of the selected product variant.
  25.        },          
  26.        {
  27.         'name': 'Tiger Bullets',                
  28.         'id': 'Tiger-Bullets-Lcm',              
  29.         'price': '1878.00',              
  30.         'brand': 'federal',            
  31.         'category': 'Drilling/Fluids',          
  32.         'variant': 'Monahans TX - 60',              
  33.         'quantity': 1,
  34.         'dimension12': 'miswaco',
  35.         'dimension13': 'M0017771-60-3'
  36.        }]
  37.     }
  38.   }
  39. });
  40. </script>
Advertisement
Add Comment
Please, Sign In to add comment