Last active
May 6, 2022 21:10
-
-
Save nikosantis/995ec821a1aaf7a4d6230c6edcdef9f9 to your computer and use it in GitHub Desktop.
Events for HD Forms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// with dataLayer object | |
// use this array push when the submitted form was success | |
dataLayer.push({ | |
event: "formSent", | |
formName: "formName", // you can use formName or formId | |
formEmail: "email from form", | |
formPhone: "phone from form", // only if the phone is required in the form | |
formProductName: "product name" // only if have a selected product | |
}); | |
// if you want to deliver more info, please, | |
// use in camelCase format with the initial word "form" ex: formDealer, formId, formExtraData |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment