Integration
Gravity Forms tracking for Umami
See every successful Gravity Forms submission in Umami, labeled with the form's name. One switch, no code, and nothing typed into the form leaves your site.
Short answer
To track Gravity Forms submissions in Umami, install Connect for Umami, open Settings → WPUmami → Events and switch on Form submissions. Each successful submission then sends a form_submit event to Umami with the form's name, its ID and plugin set to gravity-forms. It works for AJAX and non-AJAX forms. Validation errors are not counted, and nothing typed into the form is sent.
The Gravity Forms event sent to Umami
One event, sent once for each successful submission. It appears in Umami under Events, with the details below attached.
| Event | When it is sent | Data sent with it |
|---|---|---|
form_submit | A Gravity Forms form is submitted successfully. A submission with validation errors does not send it. |
|
How a successful Gravity Forms submission is detected
The event is sent only when Gravity Forms itself says the submission went through. How the plugin hears that depends on how the form is set up:
- AJAX forms. Gravity Forms announces in the browser that the confirmation has loaded (its
gform_confirmation_loadedevent). The plugin listens for it and sendsform_submit. - Non-AJAX forms. The page reloads to show the confirmation. The plugin hears from Gravity Forms on the server, after the submission is saved, and adds the event to the page that comes back.
- Redirect confirmations. When the confirmation sends the visitor to another page on the same site, the plugin adds a short marker to the end of that address, after a
#. The page the visitor lands on reads the marker, sends the event and removes the marker from the address bar. The part of an address after#is never sent to a server.
In every case the event goes through Umami's own tracker. It lands in the same Umami session as the visit and follows the same rules as your pageviews: Do Not Track, your domains list and the administrator exclusion.
One submission, one event
If the same form reports success twice within three seconds, the second report is ignored, so a single submission is not counted twice.
Which Gravity Forms setups are covered
| Setup | Tracked | Notes |
|---|---|---|
| AJAX form with a confirmation message | Yes | Reported when Gravity Forms loads the confirmation. |
| Non-AJAX form with a confirmation message | Yes | Reported from the page that reloads after the submission is saved. |
| Confirmation that redirects to a page on the same site | Yes | Reported from the page the visitor lands on. AJAX and non-AJAX. |
| Confirmation that redirects to another website | No | The visitor leaves your site before an event can be sent. |
| Submission with validation errors | No | By design. Only successful submissions are counted. |
| Logged-in administrators | No | Left out by default. Untick "Exclude logged-in admins" on the Tracking tab to include them. |
Same site means the redirect uses the same hostname as your WordPress site address. A redirect address that already contains a # anchor is left untouched and is not reported.
How to turn on Gravity Forms tracking
Connect the site to Umami
In WordPress, go to Settings → WPUmami → Tracking. Paste your Umami website ID and script URL, then save. The status panel at the top should say the tracking script is responding.
Switch on Form submissions
Open the Events tab. Under Forms and comments, tick Form submissions and save. The description under the switch lists the form plugins active on the site, and should include Gravity Forms.
Submit a test entry
In a private browser window, open a page with one of your forms, fill it in and submit it. Use a private window because logged-in administrators are not tracked by default.
Check Umami
In Umami, open your website and look at Events. You should see
form_submit, with the form's title in itsformproperty andgravity-formsinplugin.
What is not sent
Nothing typed into the form is sent to Umami. That means no names, email addresses, phone numbers, messages or any other field value. The event carries three things: the form's title, its ID and the plugin name gravity-forms. Because the title is sent, give your forms titles you are happy to see in your analytics.
The plugin sets no cookies and uses no local or session storage in the visitor's browser to do this.
Questions you can answer once it is on
- Which form gets the most submissions, using the
formproperty. - Which referrers and campaigns bring visitors who go on to submit a form.
- Which countries and devices submissions come from, because the event sits in the same Umami session as the visit.
- How many visitors who reach a page with a form go on to submit it, using an Umami funnel that ends in
form_submit.
Frequently asked questions
How do I track Gravity Forms submissions in Umami?
Install Connect for Umami, enter your Umami website ID and script URL on the Tracking tab, then tick Form submissions on the Events tab. Each successful Gravity Forms submission then appears in Umami as a form_submit event with the form's name and ID.
Does it work with AJAX-enabled Gravity Forms?
Yes. AJAX forms are reported when Gravity Forms loads the confirmation in the browser. Non-AJAX forms are reported from the page that reloads after the submission is saved.
Are failed submissions or validation errors counted?
No. The event is sent only when Gravity Forms reports a successful submission. A visitor who gets a validation error and gives up is not counted.
Does it send the entry or any field values to Umami?
No. Only the form's title, its ID and the plugin name gravity-forms are sent. Nothing the visitor typed leaves your site.
Does it work when the confirmation redirects to a thank-you page?
Yes, when the thank-you page is on the same site. The submission is reported from the page the visitor lands on. A redirect to a different website is not reported.
Why is my own test submission not showing up in Umami?
Logged-in administrators are excluded from tracking by default. Test in a private browser window, or untick "Exclude logged-in admins" on the Tracking tab while you test.
Connect WordPress to Umami in about two minutes
One plugin: the tracking script, events, store revenue and your stats inside WordPress. Plans start at $12 a year, with a 14-day money-back guarantee.