filipr27

ga4 - slb new - solution_click

Sep 8th, 2022 (edited)
163
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 solution link on any page.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'slb_solution_click',
  7.  'page_section': 'our lead slb solutions',  //Section of the page where the event happened.
  8.  'position': '3',  //The element's position in the list, carousel, or card section.
  9.  'solution': 'performance assurance',  //Solution name.
  10.  'strategic_field': '<strategic_field>',
  11.  'topic': '<topic>',
  12.  'ui_element_name': 'solutions card',  //Name of the UI element from the Zeplin file.
  13.  'ui_element_category': 'card'  //Category of the UI element.
  14.  });
  15. </script>
Advertisement
Add Comment
Please, Sign In to add comment