> For the complete documentation index, see [llms.txt](https://docs.humblytics.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.humblytics.com/how-to-track-custom-form-submissions/hubspot-forms.md).

# Hubspot Forms

Most HubSpot forms are tracked automatically. Forms built in HubSpot's newer form editor need one small snippet.

Most embedded HubSpot forms are tracked automatically once the Humblytics script is on the page. Submissions show up as **Hubspot Form** in **Observe → Analytics → Forms**.

## Pick your site builder

* [Webflow](/how-to-track-custom-form-submissions/hubspot-forms/webflow-how-to-track-hubspot-form-submissions.md): usually no code needed
* [Framer](/how-to-track-custom-form-submissions/hubspot-forms/framer-how-to-track-hubspot-form-submissions.md): add one short relay snippet
* [Custom / self-hosted](/how-to-track-custom-form-submissions/hubspot-forms/custom-self-hosted-how-to-track-hubspot-form-submissions.md): usually no code needed

***

## Which HubSpot embed do I have?

Look at the embed code HubSpot gave you (in HubSpot, open the form and click **Share → Embed code**).

| Your embed code contains          | What to do                                                         |
| --------------------------------- | ------------------------------------------------------------------ |
| `hbspt.forms.create(...)`         | Nothing. It's tracked automatically.                               |
| `<div class="hs-form-frame" ...>` | This is a form from HubSpot's newer editor. Add the snippet below. |

**Snippet for newer HubSpot forms.** Paste it on the same page, right below your HubSpot embed code:

```html
<script>
  // Runs when a newer HubSpot form is submitted successfully
  window.addEventListener("hs-form-event:on-submission:success", function () {
    window.Humblytics.trackFormSubmission("Hubspot Form");
  });
</script>
```

Change `Hubspot Form` to something more specific, like `demo-request`, if you want to tell your HubSpot forms apart. In Framer, use the version in the [Framer guide](/how-to-track-custom-form-submissions/hubspot-forms/framer-how-to-track-hubspot-form-submissions.md) instead.

{% hint style="info" %}
**All your HubSpot forms show up as one "Hubspot Form"?** That's expected with automatic tracking. The Forms table still splits them by page, so you can see where each submission came from. To give each form its own name, use the snippet above with a different name per form.
{% endhint %}
