Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.productDetail', // Name of the event. In this case, always stays as 'eec.productDetail'.
- 'ecommerce': { // The Ecommerce object. This is the essential part of the tracking. New EEC data must always be pushed using this object.
- 'detail': { // Type of an ecommerce action. In this case, always stays as 'detail'.
- 'products': [{
- 'name': 'REDA ESP - Gas Handler', // The name of the product that was viewed. Always include it.
- 'id': 'Reda-Esp-Gas-Handler', // The ID (SKU) of the product. Always include it.
- 'price': '11130.00', // The price of the product.
- 'brand': 'schlumberger', // The brand name of the product.
- 'category': 'Production/Electrical-Submersible-Pumps', // Category of the product.
- 'variant': 'REDA ESP - Gas Handler 75% GVF', // The product variant. If there are no variants, or if the base product was viewed, send Base Product.
- 'dimension12': 'sals', // The vendor of the product.
- 'dimension13': '102761535' // SKU of the selected product variant. If the base product was viewed, send base product's SKU.
- }]
- }
- }
- });
- </script>
Add Comment
Please, Sign In to add comment