View difference between Paste ID: FYiVrisa and EDYLYrUJ
SHOW: | | - or go back to the newest paste.
1-
//Push this dataLayer event when user clicks on an event link on any page.
1+
//Push this dataLayer event when the user clicks on a link in the helpful links section on a page. (Don't push this event for the links in the footer.)
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'event_click',
6+
 'event': 'helpful_links_click',
7-
 'page_section': 'upcoming events',  //Section of the page where the click happened.
7+
 'click_element': 'magazine',  //Text or description of the element that was clicked on.
8-
 'title': 'slb careers fair 2022',  //The title of the event.
8+
 'position': '2',  //The element's position in the list, carousel, or card section.
9-
 'content_type': 'event',  //The type of content.
9+
 'ui_element_name': 'helpful links',  //The name of the UI element from the Zeplin file.
10-
 'content_group': 'event',  //The content group that the content piece belongs to.
10+
 'ui_element_category': 'link'  //The category of the UI element.
11-
 'position': '1',  //The element's position in the list, carousel, or card section.
11+
12-
 'author_name': 'john doe, jane doe',  //Name of the speaker(s). If multiple speakers, separate names by a comma.
12+