Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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.
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- 'event': 'form_engagement',
- 'formAction': 'Submission',
- 'formCategory': 'Contact',
- 'formName': 'Contact Us',
- 'formId': '123', // Variable value - the ID of the form.
- 'formInterest': 'Digital Technology' // Variable value based on what user selects from the Subject Of Interest dropdown.
- });
- </script>
Add Comment
Please, Sign In to add comment