Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks on a product link on any page. Product links can appear in a grid, carousel, accordion, a featured product banner, etc.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'product_click',
- 'page_section': 'related_products', //Section of the page where the event happened.
- 'position': '3', //The element's position in the list, carousel, or card section.
- 'product_name': '<product_name>',
- 'domain': '<domain>',
- 'strategic_field': '<strategic_field>',
- 'solution': '<solution>',
- 'topic': '<topic>',
- 'category': '<category>',
- 'sub_category': '<sub_category>',
- 'product_family': '<product_family>',
- 'family': '<family>',
- 'identifier': '<identifier>',
- 'business_line': '<business_line>',
- 'division': '<division>',
- 'marks_list': '<marks_list>',
- 'ui_element_name': 'related products carousel', //Name of the UI element from the Zeplin file.
- 'ui_element_category': 'carousel' //Category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment