filipr27

ga4 - slb new - people_stories_click

Sep 9th, 2022 (edited)
160
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 "people stories" link.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'people_stories_click',
  7.  'content_group': 'people stories',  //Content group that the content piece belongs to.
  8.  'page_section': 'stories from our people',  //Section of the page where the event happened.
  9.  'title': '<title>',  //Title of the content piece.
  10.  'position': '4',
  11.  'ui_element_name': '<ui_element_name>',  //The name of the UI element from the Zeplin file.
  12.  'ui_element_category': 'carousel'  //The category of the UI element.
  13.  });
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment