Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks on a CTA button in the hero banner section of the page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'hero_cta_click',
- 'page_section': '<hero banner title>', //Section of the page where the event happened.
- 'click_element': 'get in touch', //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': '<ui_element_category>' //The category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment