filipr27

GA4 - sort_products - Duni

Apr 27th, 2023 (edited)
666
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 an option from the drop-down menu for sorting products.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'sort_products',
  7.  'cd_click_text': 'Relevance'  //The type of sorting the user chose. Relevance, Name (A-Z), Name (Z-A).
  8.  });
  9. </script>
Advertisement
Add Comment
Please, Sign In to add comment