Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.promoView', // name of an event. In this case, always stays as eec.promoView
- '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 a user
- {
- 'id': '{{Banner ID 1}}', // id of a banner
- 'name': '{{Banner Name 1}}', // name of a banner
- 'creative': '{{banner creative 1}}', // type of a banner ex. Home Page Carousel
- 'position': '{{Banner position 1}}' // position of a banner ex. Carousel 1
- },
- {
- 'id': '{{Banner ID 2}}',
- 'name': '{{Banner Name 2}}',
- 'creative': '{{banner creative 2}}',
- 'position': '{{Banner position 2}}'
- }]
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement