Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.productImpression', // Name of the event. In this case, always stays as 'eec.productImpression'.
- 'ecommerce': { // The Ecommerce object. This is the essential part of the tracking. New EEC data must always be pushed using this object.
- 'currencyCode': 'USD', // The currency which is set by the visitor.
- 'impressions': [{
- 'name': 'REDA ESP - Gas Handler', // The name of the product that is displayed. Always include it.
- 'id': 'Reda-Esp-Gas-Handler', // The ID (SKU) of the product. Always include it.
- '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.
- 'list': 'New and Popular', // The list name where the impression was viewed.
- 'position': '1', // 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.
- },
- {
- 'name': 'Tiger Bullets',
- 'id': 'Tiger-Bullets-Lcm',
- 'price': '31.30',
- 'brand': 'federal',
- 'category': 'Drilling/Fluids',
- 'variant': 'Base Product',
- 'list': 'New and Popular',
- 'position': '2',
- 'dimension12': 'miswaco',
- 'dimension13': 'Tiger-Bullets-Lcm'
- }]
- }
- });
- </script>
Add Comment
Please, Sign In to add comment