filipr27

ga4 - slb new - locations_address_click

Sep 8th, 2022
167
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 location address on the locations page.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'locations_address_click',
  7.  'location_id': 'cameron 1',  //ID of the location.
  8.  'ui_element_name': 'address card',  //The name of the UI element from the Zeplin file.
  9.  'ui_element_category': 'card'  //The category of the UI element.
  10.  });
  11. </script>
Add Comment
Please, Sign In to add comment