Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks on a side-menu link on the product page.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'product_side_menu_click',
- 'product_name': '<product_name>',
- 'category': '<category>',
- 'sub_category': '<sub_category>',
- 'click_element': 'features' //Text or description of the element that was clicked on.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment