SHOW:
|
|
- or go back to the newest paste.
| 1 | - | //Push this dataLayer event when the user clicks on a CTA button in the hero banner section of the page. |
| 1 | + | //Push this dataLayer event when the user clicks to expand an accordion element. |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'hero_cta_click', |
| 6 | + | 'event': 'accordion_expand', |
| 7 | - | 'page_section': '<hero banner title>', //Section of the page where the event happened. |
| 7 | + | 'page_section': 'other way we innovate at scale', //Section of the page where the event happened. |
| 8 | - | 'click_element': 'get in touch', //Text or description of the element that was clicked on. |
| 8 | + | 'title': 'decarbonizing industry', //Title of the accordion. |
| 9 | 'ui_element_name': '<ui_element_name>', //The name of the UI element from the Zeplin file. | |
| 10 | - | 'ui_element_category': '<ui_element_category>' //The category of the UI element. |
| 10 | + | 'ui_element_category': 'accordion' //The category of the UI element. |
| 11 | }); | |
| 12 | </script> |