Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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.)
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'form_submit',
- '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.)
- 'form_id': '<form_id>', //ID of the form.
- 'form_interest': '<form_interest>', //The value of the "interested in" field in the form. It is selected from the dropdown menu.
- 'region': '<region>' //Selected region in the contact form "region" field.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment