Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'eec.promotionClick',
- 'ecommerce': { // ecommerce object. This is the essential part of tracking. New data must always be pushed to this object
- 'promoClick': {
- 'promotions': [{
- 'id': 'https://www.dior.com/on/demandware.static/-/Library-Sites-DiorSharedLibrary/default/dwf027a754/images/beauty/0-HOME/FRAGRANCES/2023/08.AUGUST/SVG_S223_Mood-Elixir_1688x3000.jpg', // Unique identifier for the promotion that was clicked.
- 'name': 'Sauvage Elixir', // Name of the promotion.
- 'creative': 'SVG_S223_Mood-Elixir_1688x3000', // A name for the creative where the promotion banner was showing.
- 'position': 'slot1' // Some way to distinguish the position of the promotion in the creative (e.g. first slide of a carousel).
- }]
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement