Gravity Form Event Listener

Track Gravity form submission as conversion in your advertising platform, and analytics tools using Google Tag Manager, and the Gravity form event listener (which makes it possible to fire your conversion tracking tags/pixels on successful Gravity form submissions)

How to track Gravity Form Submission with google tag manager

If you are using the Gravity form on your website and you want to measure the form conversions in your analytics tools and advertising platform

You will have to use the Gravity form event listener and Google Tag Manager to make this possible.

First, create a custom HTML tag type, paste the event listener code there and fire it on pageview or DOM ready.

Next, you’ll set up a custom event trigger with the event name [formSubmissionSuccess] used to fire your marketing pixels/tags on successful Gravity form submissions.

To capture the Gravity form ID, create a dataLayer variable with the key [formID].  you can push the form ID into your analytics as an event parameter.

 

🏆 Credit

The creator of this code is Julius Fedorovicius

<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: "formSubmissionSuccess",
formID: formID
});
});
});
</script>

Video of how to use the listener

Related Event Listener

Webflow Form

Track successful form submissions of your native Webflow forms and fire your conversion pixels/tags on this action.
mailchimp for wordpress event listener

Mailchimp For WordPress

Using the Mailchimp For WordPress Plugin by Ibericode, then you can use this event listener to capture conversions.

Elementor Form

Measure successful Elementor form submissions as conversion and trigger your marketing tags/pixels on successful submission.

download the google tag manager recipe for tracking Gravity Form Submission

we make you smarter with data

made with ❤️

The DumbData Team
Before you leave, try out these free tools.
FREE GA4 AUDIT TOOL & UTM AUDIT TOOL