Last active
April 3, 2023 16:54
-
-
Save Quay3/02443d3cdb35d6484919b0c245eb539b to your computer and use it in GitHub Desktop.
Form Submission Custom HTML Tag for GTM
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> | |
jQuery(document).ready( function() { | |
jQuery(document).on('nfFormSubmitResponse', function(event, response, id) { | |
dataLayer.push ({ | |
'event' : 'ninjaFormSubmission', | |
'NFformID' : response.id | |
}); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment