Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Push this dataLayer event when the user clicks on a service link on any page. A service link can appear in a grid, carousel, accordion, etc.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'service_click',
- 'page_section': 'our services', //Section of the page where the event happened.
- 'position': '3', //The element's position in the list, carousel, or card section.
- 'service_name': '<service_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': '<ui_element_name>', //Name of the UI element from the Zeplin file.
- 'ui_element_category': 'accordion' //Category of the UI element.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment