# Framer – How to Track Typeform Submissions

Humblytics makes it easy to track custom form submissions—including embedded Typeform widgets—without any need for complex analytics tools or cookie banners. Follow this guide to set up accurate form conversion tracking using a simple embed script.

Why Track Form Submissions?

Tracking form completions helps you:\
• Measure lead conversion from landing pages\
• Evaluate the performance of different form layouts or CTAs\
• Run A/B tests and attribute success accurately\
• Trigger goals in funnel analysis

Prerequisites

Before starting, make sure:\
• You have a Typeform embedded on your site\
• Humblytics is installed and active on the same page (via the tracking script)

#### Step-by-Step Setup

To track Typeform submissions, embed the following code where your Typeform appears:

```
<!-- Typeform -->
<div data-tf-on-submit="submit" data-tf-live="FORMID"></div>
<script src="//embed.typeform.com/next/embed.js"></script>

<!-- Humblytics custom tracking begins -->
<script>
  function submit({ formId, responseId }) {
    window.parent.postMessage({
      type: 'formSubmission',
      formName: 'custom-form',
      formId: formId,
      responseId: responseId
    }, '*');
  }
</script>
<!-- Humblytics custom tracking ends -->
```

**Explanation:**

* data-tf-on-submit="submit" binds the Typeform submission event to your custom function
* The submit() function calls Humblytics.trackFormSubmission("custom-form"), which logs the submission as a tracked event

#### Viewing Submissions in Your Dashboard

Once your form is live and receiving submissions:

1. Log into your Humblytics dashboard
2. Navigate to the Forms section
3. Look for "custom-form" under tracked form events
4. Use filters (by traffic source, device, or time) to analyze performance


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.humblytics.com/how-to-track-custom-form-submissions/typeform/framer-how-to-track-typeform-submissions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
