Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks on a link in the helpful links section on a page. (Don't push this event for the links in the footer.)
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'helpful_links_click',
- 'click_element': 'magazine', //Text or description of the element that was clicked on.
- 'position': '2', //The element's position in the list, carousel, or card section.
- 'ui_element_name': 'helpful links', //The name of the UI element from the Zeplin file.
- 'ui_element_category': 'link' //The category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment