Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.productClick', // Name of the event. In this case, always stays as 'eec.productClick'.
- 'ecommerce': { // The Ecommerce object. This is the essential part of the tracking. New EEC data must always be pushed using this object.
- 'click': { // Type of an ecommerce action. In this case, always stays as 'click'.
- 'actionField': {
- 'list': 'New and Popular' // The list name where the product was clicked.
- },
- 'products': [{
- 'name': 'REDA ESP - Gas Handler', // The name of the product that was clicked.
- 'id': 'Reda-Esp-Gas-Handler', // The ID (SKU) of the product.
- 'price': '4125.00', // The price of the product.
- 'brand': 'schlumberger', // The brand name of the product.
- 'category': 'Production/Electrical-Submersible-Pumps', // Category of the product.
- 'variant': 'Base Product', // The product variant. If there are no variants, always send Base Product.
- 'position': '3', // The position of the item in the list (e.g. was it the first item in the list, the second, the third, etc.).
- 'dimension12': 'sals', // The vendor of the product.
- 'dimension13': 'Reda-Esp-Gas-Handler' // SKU of the selected product variant. If no variant is yet selected, send the SKU of the base product.
- }]
- }
- }
- });
- </script>
Add Comment
Please, Sign In to add comment