filipr27

ga4 - slb new - topic_click

Sep 13th, 2022
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Push this dataLayer event when a user clicks on a topic link. This usually happens on the Topic template page.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'topic_click',
  7.  'page_section': 'how can we partner to help you reach your sustainability goals?',  //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 tags)
  8.  'topic': 'minimize well construction co2 footprint',  //Name of the topic.
  9.  'campaign': '<campaign>'  //Name of the campaign.
  10.  });
  11. </script>
Advertisement
Add Comment
Please, Sign In to add comment