View difference between Paste ID: vvtfHHzb and V9tSUccT
SHOW: | | - or go back to the newest paste.
1-
window.dataLayer  = window.dataLayer || [];
1+
<script>
2
window.dataLayer = window.dataLayer || [];
3-
    'event': 'productClick',    // name of an event. In this case, always stays as productClick
3+
4-
    'ecommerce': {                  // ecommerce object. This is the essential part of tracking. New EE data must always be pushed to this object
4+
    'event': 'eec.productClick',    	// Name of the event. In this case, always stays as 'eec.productClick'.
5-
      'click': {                    // name of an action. In this case, always stays as click
5+
    'ecommerce': {                 		// The Ecommerce object. This is the essential part of the tracking. New EEC data must always be pushed using this object.
6
      'click': {                    	// Type of an ecommerce action. In this case, always stays as 'click'.
7-
            'list': '{{List name}}'          //name of a list in which the product was clicked  
7+
8
            'list': 'New and Popular'					// The list name where the product was clicked.
9
        },  
10-
            'name': '{{Product name}}',      // name of a product that was clicked. Always include it.
10+
11-
            'id': '{{Product ID}}',       // id of a product. Always include it.
11+
            'name': 'REDA ESP - Gas Handler',      					// The name of the product that was clicked.
12-
            'price': '{{product price}}',      // price of a product
12+
            'id': 'Reda-Esp-Gas-Handler',      						// The ID (SKU) of the product.
13-
            'brand': '{{product brand}}',     // brand/vendor of a product
13+
            'price': '4125.00',     	 							//  The price of the product.
14-
            'category': '{{product category}}',  // category of a product
14+
            'brand': 'schlumberger',     							// The brand name of the product.
15-
            'variant': '{{Product Variant}}',    // product variant. If there are no variants, exclude this key from the dataLayer.push
15+
            'category': 'Production/Electrical-Submersible-Pumps', 	// Category of the product.
16-
            'position': '{{Impression Possition}}'         // number of a position (in which a product was visible at that time. 1 for the first product in the list, 2 for the second etc)
16+
            'variant': 'Base Product',  							// The product variant. If there are no variants, always send Base Product.
17
            '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.).
18
			'dimension12': 'sals',         							// The vendor of the product.
19
			'dimension13': 'Reda-Esp-Gas-Handler'                   // SKU of the selected product variant. If no variant is yet selected, send the SKU of the base product.
20-
});
20+
21
     }
22
  }
23
});
24
</script>