View difference between Paste ID: dvXmwGP1 and XFF7CxVB
SHOW: | | - or go back to the newest paste.
1
<script>
2-
window.dataLayer  = window.dataLayer || [];
2+
window.dataLayer = window.dataLayer || [];
3
window.dataLayer.push({
4-
	'event': 'promotionView',					// name of an event. In this case, always stays as promotionView
4+
	'event': 'eec.promotionView',					
5
	'ecommerce': {								// ecommerce object. This is the essential part of tracking. New data must always be pushed to this object
6
		'promoView': {							// name of an action. In this case, always stays as promoView
7-
		  'promotions': [                     	// list of promotions or banners displayed to a user
7+
		  'promotions': [                     	// list of promotions or banners displayed to the user
8
		   {
9-
			 'id': '{{Banner ID 1}}',       	// id of a banner         
9+
			 'id': 'ofmp-bornbred-banner',       				// Unique identifier for the promotion.      
10-
			 'name': '{{Banner Name 1}}',     	// name of a banner
10+
			 'name': 'Born and bred in Texas ',     		// Name of the promotion.
11-
			 'creative': '{{banner creative 1}}',	// type of a banner	ex. Tehnomanija
11+
			 'creative': 'Gray Banner Homepage',		// A name for the creative where the promotion banner is showing.
12-
			 'position': '{{Banner position 1}}'       		// position of a banner ex. Početna strana - P3 | 1
12+
			 'position': 'slot1'      				// Some way to distinguish the position of the promotion in the creative (e.g. first slide of a carousel).
13
			},				
14
		   {
15-
			 'id': '{{Banner ID 2}}',           
15+
			 'id': 'ofmp-global-track-record',           
16-
			 'name': '{{Banner Name 2}}',
16+
			 'name': 'Global Track Record',
17-
			 'creative': '{{banner creative 2}}',
17+
			 'creative': 'Red Banner Homepage',
18-
			 'position': '{{Banner position 2}}'       
18+
			 'position': 'slot2'       
19
			}]
20
		}
21
  }
22
});
23
</script>