Track form submissions
Capture when users submit forms on your website, such as sign-up forms, contact forms, newsletter subscriptions, or checkout flows.
This page covers the Umami implementation. For measurement strategy — form starts versus submissions, abandonment rates, and interpreting the data — see the form tracking guide on the main site.
Using data attributes#
For simple forms, add tracking attributes directly to the submit button:
Using JavaScript for more control#
For forms that use JavaScript submission (AJAX, fetch, or framework form handling), call umami.track() in your submit handler:
React example#
Tracking form completions vs. submissions#
If your form spans multiple steps (like a checkout flow), track each step to understand where users drop off:
You can then use the Funnel insight to visualize the drop-off between steps.
Viewing form data#
Navigate to Events to see submission counts, and Event data to break down submissions by form name, source, or any other properties you track.
To measure what percentage of visitors submit a form, create a Goal with the form-submit event as the conversion action.