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 main footer section of the page. Do not push this event when the user clicks on the social media profile links.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'footer_click',
- 'menu_name': 'helpful links', //Section of the page where the event happened.
- 'click_element': 'customer support', //Text or description of the element that was clicked on.
- 'ui_element_name': '<ui_element_name>', //The name of the UI element from the Zeplin file.
- 'ui_element_category': 'footer' //The category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment