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 a user successfully signs up (creates an account). |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'hero_cta_click', |
| 6 | + | 'event': 'sign_up', |
| 7 | - | 'page_section': '<hero banner title>', //Section of the page where the event happened. |
| 7 | + | 'website': 'www.slb.com', //The website for which the user signed up. |
| 8 | - | 'click_element': 'get in touch', //Text or description of the element that was clicked on. |
| 8 | + | 'user_id': '<user_id>' //Unique user ID of a registered user from the website's database. |
| 9 | - | 'ui_element_name': '<ui_element_name>', //The name of the UI element from the Zeplin file. |
| 9 | + | |
| 10 | - | 'ui_element_category': '<ui_element_category>' //The category of the UI element. |
| 10 | + |