Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks to change between the tabs on the magazine website.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'magazine_tab_change',
- 'tab_name': 'latest', //Name of the tab that was selected or from which the link was clicked.
- 'content_group': 'magazine', //The content group that the content piece belongs to.
- 'position': '2', //The element's position in the list, carousel, or card section.
- '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