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': 'LIM-392-2022', // id of a banner
- 'name': 'fall_girls_2022', // name of a banner
- 'creative': 'Home Page Carousel', // type of a banner
- 'position': 'Slide 1' // position of a banner
- },
- {
- 'id': 'LIM-393-2022',
- 'name': 'fall_sale_boys2',
- 'creative': 'Sidebar',
- 'position': 'slot 1'
- }]
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement