Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks on a regular CTA button or text (hero CTA excluded). Do not push this event if some other event is firing here, e.g. product_click, file_download, etc.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'cta_click',
- 'page_section': 'talk to a specialist', //Section of the page where the event happened.
- 'click_element': 'contact us', //Text or description of the element that was clicked on.
- 'content_group': '<content_group>', //Content group that the link belongs to. (include only if applicable - e.g. for "view more" buttons)
- '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