filipr27

ga4 - slb new - product_side_menu_click

Sep 12th, 2022
179
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 side-menu link on the product page.
  2.  
  3. <script>
  4. window.dataLayer = window.dataLayer || [];
  5. window.dataLayer.push({
  6.  'event': 'product_side_menu_click',
  7.  'product_name': '<product_name>',
  8.  'category': '<category>',
  9.  'sub_category': '<sub_category>',
  10.  'click_element': 'features'  //Text or description of the element that was clicked on.
  11.  });
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment