Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.promotionView',
- 'ecommerce': { // ecommerce object. This is the essential part of tracking. New data must always be pushed to this object
- 'promoView': { // name of an action. In this case, always stays as promoView
- 'promotions': [ // list of promotions or banners displayed to the user
- {
- 'id': 'ofmp-bornbred-banner', // Unique identifier for the promotion.
- 'name': 'Born and bred in Texas ', // Name of the promotion.
- 'creative': 'Gray Banner Homepage', // A name for the creative where the promotion banner is showing.
- 'position': 'slot1' // Some way to distinguish the position of the promotion in the creative (e.g. first slide of a carousel).
- },
- {
- 'id': 'ofmp-global-track-record',
- 'name': 'Global Track Record',
- 'creative': 'Red Banner Homepage',
- 'position': 'slot2'
- }]
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement