Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Gravity Forms Elements Trigger Configuration

  • 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.

  • 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.