Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks/swipes to see more items in a carousel element.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'carousel_change',
- 'carousel_action': 'arrow', //If the user clicked on an arrow or dot, or swiped.
- 'content_group': 'magazine', //Content group that the content piece belongs to.
- 'page_section': 'top nav 2', //Section of the page where the event happened.
- 'ui_element_name': '<ui_element_name>', //The name of the UI element from the Zeplin file.
- 'ui_element_category': '<ui_element_category>' //The category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment