Free Google Tag Manager Template for Gravity Forms

A free Google Tag Manager template that detects Gravity Forms submissions and sends a gravity_form_submitted event into Google Tag Manager.

Gravity Forms Listener

Tag Configuration

Tag Type

Gravity Forms Listener by Converly

Community Template Gallery ยท converlyio

Detects successful Gravity Forms submissions and pushes a gravity_form_submitted event to the dataLayer. Nothing to configure.

Firing Triggers

All Pages

Page View

Google Tag Manager is a common way to send conversions to Google Ads, Google Analytics and Meta when someone submits a Gravity Forms form on your website.

The problem is, it's hard to set up. Gravity Forms often submits without reloading the page, and when it does reload or redirect, the confirmation happens somewhere else. Either way, Google Tag Manager's built-in form submission trigger can't reliably tell a successful submission from a failed one, so you end up writing custom code to detect it.

This free template does that part for you. Add it from Google's Community Template Gallery, create one trigger, and every successful submission sends a gravity_form_submitted event you can fire your conversion tags on.

How to Use the Template

Follow these steps to install the template and set up Google Tag Manager to send conversions to Google Ads, Meta Ads, Google Analytics and more whenever a Gravity Forms form is submitted.

1

Install It

Add the template from Google's Community Template Gallery, then set it to fire on every page. Takes about two minutes.

  1. 1

    In Google Tag Manager, go to Tags, click New, then click Tag Configuration.

    A new tag in Google Tag Manager, with the empty Tag Configuration box
  2. 2

    Choose Discover more tag types in the Community Template Gallery and search for "Gravity Forms".

    Tag type picker with "Discover more tag types in the Community Template Gallery" visible
  3. 3

    Pick Gravity Forms Listener by Converly, click Add to workspace, then Add.

    The Gravity Forms Listener by Converly template in the Community Template Gallery, with Add to workspace
  4. 4

    There's nothing to configure. Under Triggering, choose All Pages, name the tag and click Save.

    The tag set to fire on All Pages, ready to save
2

Create the Trigger

The tag you installed in step 1 listens for Gravity Forms submissions. Each time one succeeds, it fires a gravity_form_submitted event into Google Tag Manager. On its own, that event doesn't send anything to your ad platforms or analytics tools.

To do that, you need a trigger that fires whenever the event is received. In step 3 you'll attach your conversion tags to this trigger, so the chain goes: form submitted โ†’ event fired โ†’ trigger fires โ†’ conversion tags send.

Google doesn't let templates include triggers, so you create this one yourself. Go to Triggers, click New and copy these exact settings. Leave it on All Custom Events to catch every form on your site.

Exact Settings

Trigger Type
Custom Event
Event Name
gravity_form_submitted
Name It
CE - Gravity Forms Submitted

The CE - Gravity Forms Submitted trigger set to Custom Event, ready to save
3

Connect Your Tags

Now use the trigger to fire your conversion tags. Here are the three most common.

Example 1: Google Analytics

Create a new tag and choose Google Analytics: GA4 Event. Enter your Measurement ID, set the event name to generate_lead and choose CE - Gravity Forms Submitted as the firing trigger. Every Gravity Forms submission now sends an event to Google Analytics.

A GA4 Event tag firing on CE - Gravity Forms Submitted

Example 2: Google Ads

Create a new tag and choose Google Ads Conversion Tracking. Paste in the Conversion ID and Conversion Label from your Google Ads conversion action, then choose CE - Gravity Forms Submitted as the firing trigger.

A Google Ads Conversion Tracking tag firing on CE - Gravity Forms Submitted

Example 3: Meta Ads

Add a Meta Pixel tag (from the template gallery or as Custom HTML) that tracks the standard Lead event, and choose CE - Gravity Forms Submitted as the firing trigger. Meta Ads will count each submission as a lead.

A Custom HTML tag that tracks Meta's Lead event, firing on CE - Gravity Forms Submitted
4

Test in Preview Mode

Click Preview in Google Tag Manager, open a page with your form and submit a test entry. In Tag Assistant you should see three things.

  • A gravity_form_submitted event in the timeline on the left, once per submission.
  • Your conversion tags under Tags Fired when you click that event.
  • The form's ID under form_id in the Data Layer tab.

When it all looks right, click Submit to publish your container.

Tag Assistant after a test submission, showing the event and Tags Fired

What It Sends

Each successful submission pushes this to your dataLayer.

window.dataLayer.push({
  "event": "gravity_form_submitted",
  "form_id": "3"
});
KeyTypeWhat It Is
eventstringAlways gravity_form_submitted. Use it as the event name in your Custom Event trigger.
form_idstringThe ID of the Gravity Form that was submitted, as shown in WordPress under Forms.

Permissions & Privacy

Why Does Google Tag Manager Show a Warning?

Google lists every permission a template uses on its gallery page. Any template that loads a script gets a red warning next to "Injects scripts", including ours. It's the only permission this template has, and here's why it's there.

  • Injects scriptshttps://gtm-templates.converly.io/gravity-forms-listener.js

    Loads Converly's detection script. Restricted to this one address, so nothing else can be loaded.

Why That Warning Is a Good Sign

  • It loads one script, from one place. The permission is locked to gtm-templates.converly.io, so the template can't load anything from anywhere else.
  • It collects no personal data. The script watches for a successful submission and pushes one event. Nothing your visitors type is read, stored or sent to Converly.
  • It's why the template keeps itself up to date. Templates that bundle all their code are frozen at the version you installed. Ours loads the detection code from Converly's servers, so when Gravity Forms changes, the fix reaches your site without you doing anything.

Compatibility

Tested on real Gravity Forms setups. Last tested 9 Oct 2026.

SetupStatusNote
Confirmation messageWorksFires once, as the message appears.
Confirmation pageWorksFires once, before the visitor lands on the page.
Redirect to another page on your siteWorksFires once, before the browser moves on.
Redirect to another websiteWorksFires once, even though the visitor leaves your site.
AJAX turned on or offWorksWorks either way, and your saved form settings stay exactly as they are.
Multi-page formsWorksFires once, on the final page. Moving between pages doesn't count.
Save and ContinueWorksSaving a form to finish later doesn't count as a submission.
Conditional fieldsWorksFires whether conditional fields are shown, hidden or required.
File uploadsWorksFires once the upload succeeds, and stays quiet when a required file is missing.
Forms in a popupWorksFires the same way when a form that's already on the page opens in a popup.
Two forms on one pageWorksEach form fires with its own form_id.
Rejected submissionsWorksNothing fires until the visitor fixes the errors and submits successfully.
Spam caught by the honeypotWorksSpam is never counted as a conversion.
Double clicks and repeat submissionsWorksEach real submission fires exactly once.
Slow server repliesWorksWaits for Gravity Forms to confirm, even when the reply takes several seconds.
Visitors leaving mid-submissionWorksNothing fires if the visitor leaves before Gravity Forms confirms.
Installed alongside our GTM recipeWorksStill fires once, so you won't double count.

Tested with Gravity Forms 3.0.3, Chrome.

Troubleshooting & FAQ

Open Preview mode and check the listener tag fired on the first page view. If it didn't, its trigger is probably set to the event instead of All Pages.

If the tag fired but no event appears after you submit, check the form submitted successfully. A submission that fails validation fires nothing, by design.

Ad blockers and privacy extensions can also stop GTM loading. Test in a clean browser window with extensions turned off.

Changelog

VersionDateChanges
v1.0.09 Oct 2026First release in the Community Template Gallery.

Fixes to the detection script reach your site automatically and are listed here too.

What This Template Doesn't Do

It tells Google Tag Manager a form was submitted. That's enough for Google Analytics. For ad platforms it leaves a lot on the table.

It Runs in the Browser Only

Every tag fires from your visitor's browser. Ad blockers can stop it outright, and browser privacy rules can cut tracking to a single day.

It Leaves Out Click IDs

The Google and Facebook click IDs, Meta's cookies, the IP address and the user agent all stay behind. Ad platforms use them to tie a conversion back to the ad that drove it.

It Sends No Personal Details

The event carries a form ID and nothing else. Google needs the lead's name, email and phone for Enhanced Conversions, and Meta needs them for a strong Event Match Quality score.

It Won't Tell You When It Breaks

There's no log and no alerts. If a theme update or a new plugin stops your tags firing, you find out when the conversion numbers drop.

The Proper Way to Send Conversions to Google Ads, Meta Ads & More

Converly detects Gravity Forms submissions and sends the conversion server-side, with the lead's details attached. No Google Tag Manager, no code.

A Converly Conversion Flow sending Gravity Forms conversions to Google Ads and Meta Ads

Easy to Set Up

Pick a trigger, like a Gravity Forms submission, then pick where to send it. A drag-and-drop Conversion Flow, no custom code.

Sends Data Server-Side

Conversions go straight from Converly's servers to Google, Meta and the rest. Ad blockers and browser privacy rules can't get in the way.

Sends More Data

Name, email, phone, click IDs, IP address and user agent go with every conversion. That means Enhanced Conversions in Google and an EMQ score of 9 or 10 in Meta.

Conversion Log & Alerts

See every conversion, what was sent and whether each platform received it. Email alerts mean tracking can't break quietly.

100+ Tools, 20+ Destinations

Forms, scheduling and chat tools in, Google Ads, Meta, LinkedIn, Microsoft and TikTok out. Adding a new one takes a few clicks.

Free Support From Experts

Our team has 20 years in conversion tracking and analytics, and helps whenever you need it. With Google Tag Manager, you're on your own.

This Template vs Converly

GTM TemplateConverly
Detects Gravity Forms submissionsYesYes
Where conversions are sent fromThe visitor's browserConverly's servers
Lead's name, email & phoneNot sentSent with every conversion
Click IDs, IP & user agentNot sentSent with every conversion
MonitoringManual checks in Tag AssistantConversion log & email alerts
SupportYou're on your ownFree help from our team

Start Your Free Trial

Track your Gravity Forms conversions the proper way. 14 days free, no code, no complicated configuration.

No credit card required

About the author

Aaron Beashel
Aaron Beashel

Aaron is the founder of Converly. With over 15 years of experience in digital marketing and SaaS, he's passionate about helping businesses track and optimise their ad conversions.

Start your free trial

Easily send conversions to your ad platforms and analytics tools.
No code required.