Integration

WPForms tracking for Umami

See every successful WPForms submission in Umami, labeled with the form's name. One switch, no code, and nothing typed into the form leaves your site.

Last updated

Short answer

To track WPForms 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 wpforms. It works for forms that submit with AJAX and for forms that reload the page. Nothing typed into the form is sent.

The WPForms event sent to Umami

One event, sent once for each successful submission. It appears in Umami under Events, with the details below attached.

EventWhen it is sentData sent with it
form_submitA WPForms form is submitted successfully. A submission with validation errors does not send it.
form
Form name, as set in WPForms
form_id
WPForms form ID
plugin
Always wpforms for these forms

How a successful WPForms submission is detected

The event is sent only when WPForms itself says the submission went through. How the plugin hears that depends on how the form submits:

  • AJAX submissions. WPForms announces success in the browser (its wpformsAjaxSubmitSuccess event). The plugin listens for it and sends form_submit.
  • Non-AJAX submissions. The page reloads to show the confirmation. The plugin hears from WPForms on the server, once processing is complete, and adds the event to the page that comes back.
  • Non-AJAX submissions that redirect. 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 WPForms setups are covered

SetupTrackedNotes
AJAX submission with a confirmation messageYesReported when WPForms announces that the submission succeeded.
Non-AJAX submission with a confirmation messageYesReported from the page that reloads once processing is complete.
Non-AJAX submission that redirects to a page on the same siteYesReported from the page the visitor lands on.
Non-AJAX submission that redirects to another websiteNoThe visitor leaves your site before an event can be sent.
Submission with validation errorsNoBy design. Only successful submissions are counted.
Logged-in administratorsNoLeft 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 WPForms tracking

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

  2. 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 WPForms.

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

  4. Check Umami

    In Umami, open your website and look at Events. You should see form_submit, with the form's name in its form property and wpforms in plugin.

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 name, its ID and the plugin name wpforms. Because the name is sent, give your forms names 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 form property.
  • 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 WPForms 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 WPForms submission then appears in Umami as a form_submit event with the form's name and ID.

Does it work with WPForms AJAX form submission?

Yes. AJAX submissions are reported when WPForms announces success in the browser. Submissions that reload the page are reported from the page that comes back once processing is complete.

Are validation errors counted as submissions?

No. The event is sent only when WPForms reports a successful submission. A visitor who gets a validation error and gives up is not counted.

Does it send form entries or field values to Umami?

No. Only the form's name, its ID and the plugin name wpforms are sent. Nothing the visitor typed leaves your site.

Does it work when the form redirects to a thank-you page?

For a form that reloads the page, a redirect to a page on your own site 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.

See pricing