SHOW:
|
|
- or go back to the newest paste.
| 1 | - | // Fire this dataLayer event when a successful submission of a form occurs. The event should fire only for successful submissions. The event shouldn't fire again if the user reloads or revisits the thank-you page. |
| 1 | + | // Fire this dataLayer event when a successful submission of the Search a scheduled class form occurs. The value of the event parameters should be variable based on what the user selects. |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'form_engagement', |
| 6 | + | 'event': 'search_a_scheduled_class', |
| 7 | - | 'formAction': 'Submission', |
| 7 | + | 'industry_group': 'Petrotechnical', |
| 8 | - | 'formCategory': 'Contact', |
| 8 | + | 'discipline': 'Geomechanics, Geology', |
| 9 | - | 'formName': 'Contact Us', |
| 9 | + | 'products': '', |
| 10 | - | 'formId': '123', // Variable value - the ID of the form. |
| 10 | + | 'country': 'Argentina', |
| 11 | - | 'formInterest': 'Digital Technology' // Variable value based on what user selects from the Subject Of Interest dropdown. |
| 11 | + | 'level': 'All', |
| 12 | 'delivery_mechanism': 'eLearning', | |
| 13 | 'keyword': '' | |
| 14 | }); | |
| 15 | </script> | |
| 16 | ||
| 17 |