Guides

Form Submission Tracking

What is Form Tracking?

Form tracking allows you to monitor when users submit forms on your website. This helps you understand user interactions, improve conversions, and optimize form performance.

Form submission tracking

How Does It Work?

Userbird automatically tracks form submissions on your website. When a user submits a form, the system records the event and sends the data to your analytics dashboard.

What Information is Captured?

When a form is submitted, the following details are recorded:

  • Form Name – Identified by its id or name attribute, or a default name based on the page URL.
  • Page URL – The webpage where the form submission occurred.
  • Timestamp – The exact time the form was submitted.

How to Enable Form Tracking?

No additional setup is required! Once Userbird is installed on your site, form tracking works automatically. Any <form> element on your page will be detected and logged when submitted.

Viewing Form Submission Data

You can view form submission data in your analytics dashboard under the "Form Submissions" section. This will show you:

  • The number of form submissions.
  • The most frequently submitted forms.
  • The pages where forms are being submitted.

Tracking JavaScript-Based Form Submissions

If your forms are submitted using JavaScript (e.g., via AJAX or fetch), you can manually trigger a form submission event using the userbirdq.push() method:

  userbirdq.push(['form_submit', {
    form_name: 'Form Name'
  }])

Replace 'Form Name' with the actual name or identifier of your form. This ensures that all JavaScript-based form submissions are properly tracked in your analytics dashboard.

Limitations

Userbird automatically tracks standard HTML form submissions. For JavaScript-based or AJAX form submissions, you need to manually track them using the code snippet above.

Benefits of Form Tracking

  • Optimize user experience – Identify and fix problematic forms.
  • Measure engagement – Understand which forms are performing best.
  • Increase conversions – Make data-driven decisions to improve form completion rates.