filipr27

ga4 - slb new - magazine_tab_change

Sep 12th, 2022
120
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 on the magazine website.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'magazine_tab_change',
  7.  'tab_name': 'latest',  //Name of the tab that was selected or from which the link was clicked.
  8.  'content_group': 'magazine',  //The content group that the content piece belongs to.
  9.  'position': '2',  //The element's position in the list, carousel, or card section.
  10.  'ui_element_name': '<ui_element_name>',  //The name of the UI element from the Zeplin file.
  11.  'ui_element_category': '<ui_element_category>'  //The category of the UI element.
  12.  });
  13. </script>
Advertisement
Add Comment
Please, Sign In to add comment