SHOW:
|
|
- or go back to the newest paste.
| 1 | - | //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. |
| 1 | + | //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. |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'product_click', |
| 6 | + | 'event': 'service_click', |
| 7 | - | 'page_section': 'related_products', //Section of the page where the event happened. |
| 7 | + | 'page_section': 'our services', //Section of the page where the event happened. |
| 8 | 'position': '3', //The element's position in the list, carousel, or card section. | |
| 9 | - | 'product_name': '<product_name>', |
| 9 | + | 'service_name': '<service_name>', |
| 10 | 'domain': '<domain>', | |
| 11 | 'strategic_field': '<strategic_field>', | |
| 12 | 'solution': '<solution>', | |
| 13 | 'topic': '<topic>', | |
| 14 | 'category': '<category>', | |
| 15 | 'sub_category': '<sub_category>', | |
| 16 | 'product_family': '<product_family>', | |
| 17 | 'family': '<family>', | |
| 18 | 'identifier': '<identifier>', | |
| 19 | 'business_line': '<business_line>', | |
| 20 | 'division': '<division>', | |
| 21 | 'marks_list': '<marks_list>', | |
| 22 | - | 'ui_element_name': 'related products carousel', //Name of the UI element from the Zeplin file. |
| 22 | + | 'ui_element_name': '<ui_element_name>', //Name of the UI element from the Zeplin file. |
| 23 | - | 'ui_element_category': 'carousel' //Category of the UI element. |
| 23 | + | 'ui_element_category': 'accordion' //Category of the UI element. |
| 24 | }); | |
| 25 | </script> |