Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when user clicks on an event link on any page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'event_click',
- 'page_section': 'upcoming events', //Section of the page where the click happened.
- 'title': 'slb careers fair 2022', //The title of the event.
- 'content_type': 'event', //The type of content.
- 'content_group': 'event', //The content group that the content piece belongs to.
- 'position': '1', //The element's position in the list, carousel, or card section.
- 'author_name': 'john doe, jane doe', //Name of the speaker(s). If multiple speakers, separate names by a comma.
- 'ui_element_name': 'events carousel', //The name of the UI element from the Zeplin file.
- 'ui_element_category': 'carousel' //The category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment