filipr27

ga4 - slb new - strategic_field_tab_change

Sep 9th, 2022
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Push this dataLayer event when the user clicks to change between the tabs in the strategic field section.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'strategic_field_tab_change',
  7.  'page_section': 'page_section',  //Section of the page where the event happened.
  8.  'tab_name': '<tab_name>',  //Name of the tab that was selected or from which the link was clicked.
  9.  'strategic_field': '<strategic_field>',
  10.  'position': '2',
  11.  'ui_element_name': '<ui_element_name>',  //Name of the UI element from the Zeplin file.
  12.  'ui_element_category': 'ui_element_category'  //Category of the UI element.
  13.  });
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment