> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.nimbata.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Form tracking: how to set it up in Nimbata

Nimbata tracks form submissions the same way it tracks phone calls, by capturing source, visitor, and campaign data alongside every form submission event.

| Before you start: Make sure the Nimbata script is already installed on your website. If you haven't done that yet, follow the DNI Script Installation guide first.

### Step 1. Enable form tracking in the tracking code settings.

* Go to [Tracking > Tracking Code](https://app.nimbata.com/tracking/tracking-code).
* Toggle on **Enable Form Tracking?**
* Select which pages you want to monitor and which visitor sources to track.
* Click **Save & Publish**.

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/image_7rc8i4.png)

|| If you are tracking forms only (no call tracking), Nimbata will show a No DNI tracking numbers message and a Tracking script currently not published notice when you first toggle on form tracking. Simply click Save & Publish and the tracking code will be generated.

### Step 2. Deploy the tracking script on your website.

* Copy the line of code at the top of the [Tracking > Tracking Code](https://app.nimbata.com/tracking/tracking-code) page.
* [Deploy it via Google Tag Manager](https://help.nimbata.com/en/article/how-to-activate-the-dni-script-via-google-tag-manager-1m7bg14/) or add it directly to your website's HTML.

🎉 Form tracking is now active. 

After the first form submission is received, you can view and manage form data under **Tracking > Forms** and **Activity > Forms**.

### Viewing form submission details

* Go to [Tracking > Forms](https://app.nimbata.com/tracking/forms).
* Click the **Form Details** cogwheel button next to any form.
* Review submission details in the right-side panel that appears.

### Editing form details

* Go to [Activity > Forms](https://app.nimbata.com/activity/forms).
* Click the right-pointing arrow on any row to expand it.
* From the expanded view you can:
1. Switch between forms using the form name field
2. Refresh to view trend data
3. Export data
4. Edit field names
5. Manage columns
6. Delete the form (bin icon)
7. Copy the landing page URL
8. Set a monetary value for the form submission

### HubSpot form tracking

If you use HubSpot forms, you need to convert them to raw HTML before Nimbata can track them:

* Log into HubSpot
* Go to **Marketing > Lead Capture > Forms**.
* Find the form you want to track.
* Click **Edit Form**.
* Select **Style & Preview** at the top.
* Turn on **Set as raw HTML form**.
* Click **Publish**.

### Troubleshooting: Why am I not seeing tracked forms in Nimbata?

Nimbata monitors for form submission events. 
If submissions are not appearing, the most likely cause is a vanilla JavaScript form implementation.
Vanilla JS `submit()` does not raise a submit event, it only triggers a button click, so Nimbata's script cannot detect it.

**Fix:** Use one of the following instead:

* jQuery's built-in `submit()` method, which raises the correct events.
* Vanilla JS `HTMLFormElement.requestSubmit()`, which also fires the submit event correctly.
---

Detailed Guide: [**DNI script 101: how to install and configure It**](https://help.nimbata.com/en/article/dni-script-101-how-to-install-and-configure-it-1l7zt51/)
