filipr27

ga4 - slb new - newsroom_click

Sep 7th, 2022 (edited)
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'newsroom_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)
  8.  'title': 'schlumberger announces second quarter 2022 results conference call',  // The title of the content piece.
  9.  'content_type': 'press release',  // The type of content.
  10.  'content_group': 'newsroom',  // The content group that the content piece belongs to.
  11.  'position': '3', // The element's position in the list, carousel, or card section.
  12.  'ui_element_name': 'news highlight columns', // The name of the UI element from the Zeplin file.
  13.  'ui_element_category': 'highligt columns'  // The category of the UI element.
  14.  });
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment