Skip to content

Instantly share code, notes, and snippets.

@Quay3
Last active April 3, 2023 16:54
Show Gist options
  • Save Quay3/02443d3cdb35d6484919b0c245eb539b to your computer and use it in GitHub Desktop.
Save Quay3/02443d3cdb35d6484919b0c245eb539b to your computer and use it in GitHub Desktop.
Form Submission Custom HTML Tag for GTM
<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