View difference between Paste ID: 9JXb6pas and GvsMrmcf
SHOW: | | - or go back to the newest paste.
1-
// Push this dataLayer event when the user clicks on a newsroom-type link on any page. These links usually appear in "latest news" or "related news" sections. They also appear on the Newsroom page.
1+
//Push this dataLayer event when the user clicks on a CTA button in the hero banner section of the page.
2
3
<script>
4
window.dataLayer = window.dataLayer || [];
5
window.dataLayer.push({
6-
 'event': 'newsroom_click',
6+
 'event': 'hero_cta_click',
7-
 'page_section': 'latest news',  // Section of the page where the event happened. This is usually the title of the hero banner or heading for the part of the page. (H1 or H2 tag)
7+
 'page_section': '<hero banner title>',  //Section of the page where the event happened.
8-
 'title': 'schlumberger announces second quarter 2022 results conference call',  // The title of the content piece.
8+
 'click_element': 'get in touch',  //Text or description of the element that was clicked on.
9-
 'content_type': 'press release',  // The type of content.
9+
 'ui_element_name': '<ui_element_name>',  //The name of the UI element from the Zeplin file.
10-
 'content_group': 'newsroom',  // The content group that the content piece belongs to.
10+
 'ui_element_category': '<ui_element_category>'  //The category of the UI element.
11-
 'position': '3', // The element's position in the list, carousel, or card section.
11+
12-
 'ui_element_name': 'news highlight columns', // The name of the UI element from the Zeplin file.
12+