How to Track Successful Gravity Forms Submissions with Google Tag Manager
No more annoying false submissions.
Tracking form submissions can be a critical part of analyzing your website’s data. Especially if the success of your website is based off of form submissions as opposed to direct E-commerce sales. Many WordPress users use Gravity Forms to help them create forms for their website. Unfortunately, Gravity Forms makes it challenging to track form submissions with Google Tag Manager (GTM) without getting back false positives (ie. when someone just clicks the submit button, but does not actually submit the form.)
To start, open up Gravity Forms from the Dashboard of your WordPress website. From there, select the form that you want to track and then get into its confirmation settings and open up the default confirmation.
See the Pen Gravity Forms Successful Form Submission by Holly (@hollybattle) on CodePen.
To do this, open up a new Google Analytics Event tag in GTM. Fill out the tracking parameters with whatever you like, and make sure to add your GA Tracking ID. Next, create a new Custom Event Trigger and link it to the Tag you just created. For Event Name, enter gform.submit.success and then set up when you want this trigger to fire.
You’ll likely want to create separate Tags and Triggers for each form on your website to make it easy to determine which form has been submitted in your Analytics. And that’s it! Make sure to verify that all of your tags are working correctly and sending data to Analytics. You can now get all of that beautiful form submission data and rest assured that there are no false positives. Congratulations!