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 Sales',
- 'formName': 'AI in Delfi', // Variable value, based on which product/service the form is for.
- 'formId': '123', // Variable value - the ID of the form.
- 'formInterest': 'Digital Infrastructure' // Variable value based on what user selects from the Subject Of Interest dropdown.
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment