-
tbream
The following block of code is a listener for Gravity Forms submissions. Prior to using Generate Press, we used to run this directly in Tag Manager with a DOM Ready trigger. But that no longer works for us, and I realize that we probably should set this up as an element.
Would appreciate guidance for the hook configuration to use this.
<script type="text/javascript"> jQuery(document).ready(function() { jQuery(document).bind("gform_confirmation_loaded", function(event, formID) { window.dataLayer = window.dataLayer || []; window.dataLayer.push({ 'event': 'formSubmission', 'formID': formID }); }); }); </script>
-
Hi there,
To add JS, you can add it to a hook element, set hook name to
wp_footer
and set the location to where you want it to run. -
tbream
Thank you. It seemed simple but just wanted to confirm.
-
No Problem 🙂
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.