Integration
Ninja Forms tracking for Umami
See in Umami how often each of your Ninja Forms is submitted, and where the visitors who submit them came from. One switch, no code.
Short answer
To track Ninja Forms in Umami, install Connect for Umami, open Settings → WPUmami → Events and switch on Form submissions. When Ninja Forms reports that a submission went through without errors, the plugin sends a form_submit event with the form's title, its ID and plugin set to ninja-forms. A form stopped by a validation message is not counted, and nothing typed into the form is sent.
The Ninja Forms event sent to Umami
One event covers every Ninja Forms form on the site. It appears in Umami under Events, with the details below attached.
| Event | When it is sent | Data sent with it |
|---|---|---|
form_submit | A visitor submits a Ninja Forms form and Ninja Forms answers that the submission went through without errors. |
|
How a Ninja Forms submission is detected
Ninja Forms sends each submission to the server in the background, without loading a new page. When the server answers, Ninja Forms announces it in the browser with its nfFormSubmitResponse event. Connect for Umami listens for that event and sends form_submit through the Umami tracker that is already on the page.
The event is tied to that response, not to the click on the Submit button. A form that Ninja Forms stops in the browser, for example because a required field is empty, is never submitted, so nothing is sent. A response that comes back from the server with errors is not counted either. If the same form reports a response more than once within three seconds, it is counted once.
The event is sent from the visitor's own browser, so it lands in the same Umami session as the visit. You can see which referrer, campaign or landing page led to the submission.
Where the form title and ID come from
Both come from the response Ninja Forms returns. form is the form's title as set in Ninja Forms, and form_id is its Ninja Forms ID. If a response carries no title, the event is sent without a form name. Every event also carries plugin set to ninja-forms, which separates these submissions from those of any other form plugin on the site.
Which situations are covered
| Situation | Counted | Notes |
|---|---|---|
| A visitor submits the form and Ninja Forms accepts it | Yes | One form_submit event with the form's title and ID. |
| A required field is empty and the form stops in the browser | No | Nothing is submitted, so there is no response to report. |
| The server answers the submission with errors | No | Only responses without errors are counted. |
| Several Ninja Forms on one page or across the site | Yes | Each event carries its own form and form_id. |
| A logged-in administrator submits the form | No | Administrators are left out by default. Other logged-in roles are counted. |
| A draft preview or the Customizer preview | No | Previews are never tracked. |
| A hostname that is not in your Domains list | No | Only applies if you filled in Domains on the Tracking tab. |
| A visitor who sends Do Not Track | No | Only applies if you switched on Respect Do Not Track. |
Form events follow the same rules as your pageviews, because both go through the same Umami tracker.
How to turn on Ninja 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 note under the switch should list Ninja Forms as active on this site.
Send a test submission
In a private browser window, open a page with one of your Ninja 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_submitwithpluginset toninja-formsand the title of the form you submitted.
What is not sent
Nothing typed into the form is ever sent to Umami. No names, email addresses, phone numbers or messages. The event carries three things: the form's title, its ID and the word ninja-forms. The plugin sets no cookies and uses no browser storage to do this.
Questions you can answer once it is on
- Which referrers, campaigns and landing pages bring visitors who submit a form.
- Which Ninja Forms form is used most, by comparing the
formvalue onform_submitevents. - How many submissions arrive each week, next to how many people visited.
- Whether moving a form to another page, or changing it, was followed by more submissions.
Frequently asked questions
How do I track Ninja Forms submissions in Umami?
Install Connect for Umami, go to Settings → WPUmami → Events and tick Form submissions. Ninja Forms submissions are then sent to Umami as form_submit events with the form's title and ID. You do not edit the form or add code.
Can Umami track Ninja Forms without a plugin?
Not automatically. Umami counts pageviews by itself, and records an event only when the page calls umami.track or a visitor clicks an element that carries a data-umami-event attribute. Ninja Forms submits in the background without a new pageview, so you would need your own JavaScript to send an event. Connect for Umami does that for you.
Is a submission counted if a required field is left empty?
No. Ninja Forms stops the form in the browser, nothing is submitted and no event is sent. The event is sent when Ninja Forms answers that the submission went through, not when the visitor presses Submit.
Can I see which Ninja Forms form was submitted?
Yes. Each form_submit event carries form (the form's title in Ninja Forms) and form_id (its ID), plus plugin set to ninja-forms.
Is what visitors type into the form sent to Umami?
No. Only the form's title, its ID and the plugin name are sent. Field values are never sent to Umami.
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. Also check that Form submissions is ticked on the Events tab.
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.