-
-
Save measureschool/ae71aa19c9b2abac16b26d44a7c545bc to your computer and use it in GitHub Desktop.
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
<script> | |
document.addEventListener( 'wpcf7submit', function( event ) { | |
window.dataLayer.push({ | |
"event" : "formSubmit", | |
"formId" : event.detail.contactFormId, | |
"fields" : event.detail.inputs | |
}) | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the difference between wpcf7mailsent and wpcf7submit? What if I use wpcf7mailsent instead of wpcf7submit?