> 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/cal.com/framer-how-to-track-cal.com-booking-submissions.md).

# Framer – How to Track Cal.com Booking Submissions

Embed Cal.com in Framer with a small snippet that records each booking in Humblytics.

{% hint style="info" %}
**You need:** the Humblytics script installed on your Framer site, your Cal.com embed code, and its namespace. See [Cal.com](https://docs.humblytics.com/how-to-track-custom-form-submissions/cal.com.md) for how to get them.
{% endhint %}

**Why this snippet looks different:** Framer runs code from an **Embed** component inside its own frame, separate from your page. So instead of calling Humblytics directly, the snippet sends a message up to your page, where Humblytics records it.

## 1. Add the embed

1. In Framer, click **Insert**, add an **Embed** component where the calendar should go, and set its type to **HTML**.
2. Paste your Cal.com embed code.
3. Directly below it, in the same Embed, paste this snippet:

```html
<script>
  // Runs when someone completes a booking and tells your page about it
  Cal.ns["30min"]("on", {
    action: "bookingSuccessfulV2",
    callback: function () {
      window.parent.postMessage(
        { type: "formSubmission", formName: "demo-call" },
        "*"
      );
    },
  });
</script>
```

4. Replace `30min` with your namespace, and `demo-call` with the name you want to see in Humblytics.

Give the Embed a fixed height (for example 700px) so the calendar isn't cut off.

## 2. Publish and test

1. Click **Publish**.
2. Open your live site in a private window and make a test booking.
3. In Humblytics, go to **Observe → Analytics → Clicks & forms** and look for your booking name within a minute or two.

**Not showing?**

* Test the published site, not the Framer editor or preview.
* The namespace in the snippet must match the one in your Cal.com code exactly.
* Keep `type: "formSubmission"` exactly as written. Only change the `formName`.
* Your embed code has no namespace (it uses `Cal("inline", ...)` instead of `Cal.ns[...]`)? Replace `Cal.ns["30min"]` with `Cal` in the snippet.

Cancel the test booking in Cal.com afterward so it doesn't stay on your calendar.
