filipr27

ga4 - slb new - breadcrumbs_click

Sep 9th, 2022
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Push this dataLayer event when user clicks on a link in the breadcrumbs section of the page.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'breadcrumbs_click',
  7.  'click_element': 'home'  //Text or description of the element that was clicked on.
  8.  });
  9. </script>
Advertisement
Add Comment
Please, Sign In to add comment