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 top navigation menu of a page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'top_nav_click',
- 'click_element': 'sustainability', //Text or description of the element that was clicked on.
- 'menu_name': 'top nav 2', //Name of the menu that was clicked on.
- '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