filipr27

ga4 - slb new - locations_country_select

Sep 8th, 2022 (edited)
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //Push this dataLayer event when the user selects a country from the dropdown list on the locations page.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'locations_country_select',
  7.  'country': '<country>'  //Selected country from the dropdown list.
  8.  });
  9. </script>
Advertisement
Add Comment
Please, Sign In to add comment