filipr27

ga4 - slb new - campaign_click

Sep 13th, 2022
177
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 campaign link. This usually happens on a solution page.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'campaign_click',
  7.  'page_section': 'dive deeper',  //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.  'solution': 'methane elimination',  //Solution name.
  9.  'campaign': '<campaign>'  //Name of the campaign.
  10.  });
  11. </script>
Advertisement
Add Comment
Please, Sign In to add comment