SHOW:
|
|
- or go back to the newest paste.
| 1 | - | //Push this dataLayer event when a user successfully submits a form. (Do not fire the event again if the user revisits the thank-you page.) |
| 1 | + | //Push this dataLayer event when the user selects a region from the dropdown list on the locations page. |
| 2 | ||
| 3 | <script> | |
| 4 | window.dataLayer = window.dataLayer || []; | |
| 5 | window.dataLayer.push({
| |
| 6 | - | 'event': 'form_submit', |
| 6 | + | 'event': 'locations_region_select', |
| 7 | - | 'form_name': 'speak with sales', //Name of the form. (For the contact form, it can be selected from the "Tell us what you'd like to do" dropdown menu.) |
| 7 | + | 'region': '<region>' //Selected region from the dropdown list. |
| 8 | - | 'form_id': '<form_id>', //ID of the form. |
| 8 | + | |
| 9 | - | 'form_interest': '<form_interest>', //The value of the "interested in" field in the form. It is selected from the dropdown menu. |
| 9 | + |