Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks to expand an accordion element.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'accordion_expand',
- 'page_section': 'other way we innovate at scale', //Section of the page where the event happened.
- 'title': 'decarbonizing industry', //Title of the accordion.
- 'ui_element_name': '<ui_element_name>', //The name of the UI element from the Zeplin file.
- 'ui_element_category': 'accordion' //The category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment