Skip to content

Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.

feat(conversion-tracking): add Cal.com detection

Aaron Beashelcb3ae8533d03
diff --git a/skills/conversion-tracking/SKILL.md b/skills/conversion-tracking/SKILL.md
index 1b07e58..f175939 100644
--- a/skills/conversion-tracking/SKILL.md
+++ b/skills/conversion-tracking/SKILL.md
@@ -157,7 +157,7 @@ Load a reference when the task reaches it. Nothing here is optional reading, it'
| The audit's evidence procedure, scoring, and report template | `references/audit-playbook.md` |
| Why the numbers never match, loss magnitudes, and the refund asymmetry | `references/discrepancies.md` |
-Assets: [`assets/snippets/`](assets/snippets/README.md) holds paste-in success detectors for 19 lead-gen tools, plus four universal patterns for the moments no form tool owns: phone call clicks (the most under-tracked conversion in local services), file downloads, thank-you page arrivals, and a generic AJAX success pattern. [`assets/gtm-recipes/`](assets/gtm-recipes/README.md) holds the importable GTM containers (detection and send, with event names in [`event-map.json`](assets/gtm-recipes/event-map.json)), and `scripts/build_recipe.py` merges them with the user's IDs into one import file.
+Assets: [`assets/snippets/`](assets/snippets/README.md) holds paste-in success detectors for 20 lead-gen tools, plus four universal patterns for the moments no form tool owns: phone call clicks (the most under-tracked conversion in local services), file downloads, thank-you page arrivals, and a generic AJAX success pattern. [`assets/gtm-recipes/`](assets/gtm-recipes/README.md) holds the importable GTM containers (detection and send, with event names in [`event-map.json`](assets/gtm-recipes/event-map.json)), and `scripts/build_recipe.py` merges them with the user's IDs into one import file.
## Boundaries
diff --git a/skills/conversion-tracking/assets/gtm-recipes/README.md b/skills/conversion-tracking/assets/gtm-recipes/README.md
index ee5c7d7..895e6d8 100644
--- a/skills/conversion-tracking/assets/gtm-recipes/README.md
+++ b/skills/conversion-tracking/assets/gtm-recipes/README.md
@@ -1,10 +1,10 @@
# GTM recipes
-Importable Google Tag Manager containers that produce one import-ready file per tool and destination, no manual tag building (23 detectors x 6 destinations).
+Importable Google Tag Manager containers that produce one import-ready file per tool and destination, no manual tag building (24 detectors x 6 destinations).
## The 2 layers
-**`detect/` (23 recipes, ready to import as-is).** Each contains a listener tag that detects one tool's conversion moment (form submitted, meeting booked) and pushes a canonical dataLayer event, plus a custom event trigger on that event and dataLayer variables for the form or booking ID. The event names are listed in `../snippets/README.md` and in `event-map.json`.
+**`detect/` (24 recipes, ready to import as-is).** Each contains a listener tag that detects one tool's conversion moment (form submitted, meeting booked) and pushes a canonical dataLayer event, plus a custom event trigger on that event and dataLayer variables for the form or booking ID. The event names are listed in `../snippets/README.md` and in `event-map.json`.
**`send/` (6 templates, need values filled in before import).** Each contains the tag that actually records the conversion, wired to a placeholder trigger:
diff --git a/skills/conversion-tracking/assets/gtm-recipes/detect/detect-cal-com.json b/skills/conversion-tracking/assets/gtm-recipes/detect/detect-cal-com.json
new file mode 100644
index 0000000..c88193f
--- /dev/null
+++ b/skills/conversion-tracking/assets/gtm-recipes/detect/detect-cal-com.json
@@ -0,0 +1,141 @@
+{
+ "exportFormatVersion": 2,
+ "exportTime": "2026-10-15 00:00:00",
+ "containerVersion": {
+ "path": "accounts/0/containers/0/versions/0",
+ "accountId": "0",
+ "containerId": "0",
+ "containerVersionId": "0",
+ "container": {
+ "path": "accounts/0/containers/0",
+ "accountId": "0",
+ "containerId": "0",
+ "name": "Conversion Detection - Cal.com",
+ "publicId": "GTM-XXXXXXX",
+ "usageContext": [
+ "WEB"
+ ],
+ "fingerprint": "0",
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/workspaces/0"
+ },
+ "tag": [
+ {
+ "accountId": "0",
+ "containerId": "0",
+ "tagId": "1",
+ "name": "Conversion Detection - Cal.com Booking Listener",
+ "type": "html",
+ "parameter": [
+ {
+ "type": "TEMPLATE",
+ "key": "html",
+ "value": "<script>\n(function () {\n 'use strict';\n if (window.__ctDetectCalcom) return;\n window.__ctDetectCalcom = true;\n window.dataLayer = window.dataLayer || [];\n\n // Cal.com's embed code (inline, popup and floating button) renders an iframe\n // from https://app.cal.com; a booking page pasted in as a plain iframe loads\n // from https://cal.com. Each posts from its own origin, so a frame is only\n // trusted for the origin its address starts with. The CSS selectors do that\n // prefix match so this listener never reads an iframe's address: Cal.com\n // prefill parameters can carry a name or email.\n var CAL_FRAMES = [\n { selector: 'iframe[src^=\"https://app.cal.com/\"]', origin: 'https://app.cal.com' },\n { selector: 'iframe[src^=\"https://cal.com/\"]', origin: 'https://cal.com' }\n ];\n var UID_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;\n var STATUS_PATTERN = /^[A-Z_]{1,32}$/;\n var trackedFrames = [];\n var seenUids = [];\n\n function trackFrame(frame, origin) {\n if (!frame || !frame.contentWindow) return;\n for (var i = 0; i < trackedFrames.length; i++) {\n if (trackedFrames[i].frame === frame) {\n trackedFrames[i].origin = origin;\n return;\n }\n }\n trackedFrames.push({ frame: frame, origin: origin });\n }\n\n function scan(root) {\n if (!root || typeof root.querySelectorAll !== 'function') return;\n for (var k = 0; k < CAL_FRAMES.length; k++) {\n var frames;\n try { frames = root.querySelectorAll(CAL_FRAMES[k].selector); } catch (e) { continue; }\n for (var i = 0; i < frames.length; i++) trackFrame(frames[i], CAL_FRAMES[k].origin);\n }\n }\n\n // The message must come from a Cal.com frame that is on this page right now,\n // and from the origin that frame was loaded from. Cal.com re-creates popup\n // frames, so a frame seen earlier is re-checked live.\n function sourceIsTracked(message) {\n for (var i = 0; i < trackedFrames.length; i++) {\n var item = trackedFrames[i];\n try {\n if (item.frame.isConnected === true && item.frame.contentWindow === message.source && item.origin === message.origin) return true;\n } catch (e) { /* replaced or inaccessible frames fail closed */ }\n }\n return false;\n }\n\n function isCalOrigin(origin) {\n for (var k = 0; k < CAL_FRAMES.length; k++) if (CAL_FRAMES[k].origin === origin) return true;\n return false;\n }\n\n function isPlainObject(value) {\n return !!value && typeof value === 'object' && Object.prototype.toString.call(value) === '[object Object]';\n }\n\n function uidSeen(uid) {\n for (var i = 0; i < seenUids.length; i++) if (seenUids[i] === uid) return true;\n seenUids.push(uid);\n return false;\n }\n\n function onMessage(message) {\n if (!message || !message.source || message.source === window) return;\n if (!isCalOrigin(message.origin)) return;\n // A frame added since the last scan (a popup that just opened) is picked up here.\n if (!sourceIsTracked(message)) {\n scan(document);\n if (!sourceIsTracked(message)) return;\n }\n var data = message.data;\n if (typeof data === 'string') {\n try { data = JSON.parse(data); } catch (e) { return; }\n }\n // Only a completed new booking. Reschedules (rescheduleBookingSuccessfulV2)\n // and the deprecated V1 events, which carry the attendee's details, never match.\n if (!isPlainObject(data) || data.originator !== 'CAL' || data.type !== 'bookingSuccessfulV2') return;\n var booking = data.data;\n if (!isPlainObject(booking) || typeof booking.uid !== 'string' || !UID_PATTERN.test(booking.uid)) return;\n if (uidSeen(booking.uid)) return;\n // Only these three values are copied. The booking title names the attendee,\n // so it and every other field are left behind.\n var push = { event: 'calcom_booking_successful', booking_uid: booking.uid };\n if (typeof booking.eventTypeId === 'number' && isFinite(booking.eventTypeId)) push.event_type_id = String(booking.eventTypeId);\n if (typeof booking.status === 'string' && STATUS_PATTERN.test(booking.status)) push.booking_status = booking.status;\n window.dataLayer.push(push);\n }\n\n function start() {\n if (typeof document === 'undefined') return;\n scan(document);\n if (typeof MutationObserver === 'undefined' || !document.documentElement) return;\n try {\n var observer = new MutationObserver(function (mutations) {\n for (var i = 0; i < mutations.length; i++) {\n var added = mutations[i].addedNodes || [];\n for (var j = 0; j < added.length; j++) {\n var node = added[j];\n if (node && node.tagName === 'IFRAME') scan(document);\n else scan(node);\n }\n if (mutations[i].type === 'attributes' && mutations[i].attributeName === 'src') scan(document);\n }\n });\n observer.observe(document.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: ['src'] });\n } catch (e) {}\n }\n\n if (typeof document !== 'undefined') {\n if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start, false);\n else start();\n }\n window.addEventListener('message', onMessage, false);\n})();\n</script>"
+ },
+ {
+ "type": "BOOLEAN",
+ "key": "supportDocumentWrite",
+ "value": "false"
+ }
+ ],
+ "firingTriggerId": [
+ "2147479553"
+ ],
+ "tagFiringOption": "ONCE_PER_EVENT",
+ "monitoringMetadata": {
+ "type": "MAP"
+ },
+ "consentSettings": {
+ "consentStatus": "NOT_SET"
+ }
+ }
+ ],
+ "trigger": [
+ {
+ "accountId": "0",
+ "containerId": "0",
+ "triggerId": "2",
+ "name": "CE - Cal.com Booking Successful",
+ "type": "CUSTOM_EVENT",
+ "customEventFilter": [
+ {
+ "type": "EQUALS",
+ "parameter": [
+ {
+ "type": "TEMPLATE",
+ "key": "arg0",
+ "value": "{{_event}}"
+ },
+ {
+ "type": "TEMPLATE",
+ "key": "arg1",
+ "value": "calcom_booking_successful"
+ }
+ ]
+ }
+ ],
+ "filter": []
+ }
+ ],
+ "variable": [
+ {
+ "accountId": "0",
+ "containerId": "0",
+ "variableId": "1",
+ "name": "DLV - Cal.com Booking UID",
+ "type": "v",
+ "parameter": [
+ {
+ "type": "TEMPLATE",
+ "key": "name",
+ "value": "booking_uid"
+ },
+ {
+ "type": "INTEGER",
+ "key": "dataLayerVersion",
+ "value": "2"
+ }
+ ]
+ },
+ {
+ "accountId": "0",
+ "containerId": "0",
+ "variableId": "2",
+ "name": "DLV - Cal.com Event Type ID",
+ "type": "v",
+ "parameter": [
+ {
+ "type": "TEMPLATE",
+ "key": "name",
+ "value": "event_type_id"
+ },
+ {
+ "type": "INTEGER",
+ "key": "dataLayerVersion",
+ "value": "2"
+ }
+ ]
+ },
+ {
+ "accountId": "0",
+ "containerId": "0",
+ "variableId": "3",
+ "name": "DLV - Cal.com Booking Status",
+ "type": "v",
+ "parameter": [
+ {
+ "type": "TEMPLATE",
+ "key": "name",
+ "value": "booking_status"
+ },
+ {
+ "type": "INTEGER",
+ "key": "dataLayerVersion",
+ "value": "2"
+ }
+ ]
+ }
+ ],
+ "fingerprint": "0",
+ "tagManagerUrl": "https://tagmanager.google.com/#/container/accounts/0/containers/0/versions/0"
+ }
+}
\ No newline at end of file
diff --git a/skills/conversion-tracking/assets/gtm-recipes/event-map.json b/skills/conversion-tracking/assets/gtm-recipes/event-map.json
index 78b1b04..f9c70a5 100644
--- a/skills/conversion-tracking/assets/gtm-recipes/event-map.json
+++ b/skills/conversion-tracking/assets/gtm-recipes/event-map.json
@@ -1,4 +1,9 @@
{
+ "cal-com": {
+ "label": "Cal.com",
+ "moment": "meeting booked",
+ "event": "calcom_booking_successful"
+ },
"calendly": {
"label": "Calendly",
"moment": "meeting booked",
diff --git a/skills/conversion-tracking/assets/snippets/README.md b/skills/conversion-tracking/assets/snippets/README.md
index 8fbe598..e38c2e6 100644
--- a/skills/conversion-tracking/assets/snippets/README.md
+++ b/skills/conversion-tracking/assets/snippets/README.md
@@ -19,6 +19,7 @@ These names are load-bearing. The audit routes in SKILL.md check for exactly the
| Tool | Snippet | Moment | dataLayer event |
|---|---|---|---|
+| Cal.com | `cal-com.js` | Meeting booked | `calcom_booking_successful` |
| Calendly | `calendly.js` | Meeting booked | `calendly_event_scheduled` |
| Contact Form 7 | `contact-form-7.js` | Form submission | `contact_form_7_submitted` |
| Divi Forms | `divi-forms.js` | Form submission | `divi_form_submitted` |
@@ -60,6 +61,7 @@ Not every snippet fires on a confirmed success. Some tools expose no success sig
| Snippet | Signal type | Exact signal |
|---|---|---|
+| `cal-com.js` | Native success event | `bookingSuccessfulV2` postMessage with `originator` `CAL`, accepted only from a Cal.com iframe on the page and only from the origin its address starts with (`https://app.cal.com` for Cal.com's inline, popup and floating button embeds, `https://cal.com` for a booking page in a plain iframe); once per booking UID. Reschedules and the deprecated `bookingSuccessful`, which carries the attendee's name and email, never count. A booking that needs the host to confirm fires straight away with `booking_status` `PENDING`. Self-hosted Cal.com is not covered |
| `calendly.js` | Native success event | `calendly.event_scheduled` postMessage with origin `https://calendly.com`, accepted only from a connected `iframe[src^="https://calendly.com/"]` and only when its event and invitee `scheduled_events` URIs name the same event; once per event and invitee pair |
| `contact-form-7.js` | Native success event | `wpcf7mailsent` DOM event on a CF7 form with a numeric form ID; overlapping requests from one attempt (a repeat `wpcf7beforesubmit` while the form is still `submitting`) count once |
| `divi-forms.js` | DOM-inferred after submit | an `.et_pb_contact_form_container` shows `.et-pb-contact-message.et_pb_success_message` after Divi's response has removed `form.et_pb_contact_form`, with no `.et_pb_contact_error_meesage` (Divi's spelling) or `.et_contact_error`; once per message node |
diff --git a/skills/conversion-tracking/assets/snippets/cal-com.js b/skills/conversion-tracking/assets/snippets/cal-com.js
new file mode 100644
index 0000000..9748f31
--- /dev/null
+++ b/skills/conversion-tracking/assets/snippets/cal-com.js
@@ -0,0 +1,124 @@
+/*! Cal.com conversion detection (MIT)
+ * Detects: meeting booked. Pushes dataLayer event: calcom_booking_successful
+ * From the conversion-tracking skill in Marketing Skills */
+(function () {
+ 'use strict';
+ if (window.__ctDetectCalcom) return;
+ window.__ctDetectCalcom = true;
+ window.dataLayer = window.dataLayer || [];
+
+ // Cal.com's embed code (inline, popup and floating button) renders an iframe
+ // from https://app.cal.com; a booking page pasted in as a plain iframe loads
+ // from https://cal.com. Each posts from its own origin, so a frame is only
+ // trusted for the origin its address starts with. The CSS selectors do that
+ // prefix match so this listener never reads an iframe's address: Cal.com
+ // prefill parameters can carry a name or email.
+ var CAL_FRAMES = [
+ { selector: 'iframe[src^="https://app.cal.com/"]', origin: 'https://app.cal.com' },
+ { selector: 'iframe[src^="https://cal.com/"]', origin: 'https://cal.com' }
+ ];
+ var UID_PATTERN = /^[A-Za-z0-9_-]{1,128}$/;
+ var STATUS_PATTERN = /^[A-Z_]{1,32}$/;
+ var trackedFrames = [];
+ var seenUids = [];
+
+ function trackFrame(frame, origin) {
+ if (!frame || !frame.contentWindow) return;
+ for (var i = 0; i < trackedFrames.length; i++) {
+ if (trackedFrames[i].frame === frame) {
+ trackedFrames[i].origin = origin;
+ return;
+ }
+ }
+ trackedFrames.push({ frame: frame, origin: origin });
+ }
+
+ function scan(root) {
+ if (!root || typeof root.querySelectorAll !== 'function') return;
+ for (var k = 0; k < CAL_FRAMES.length; k++) {
+ var frames;
+ try { frames = root.querySelectorAll(CAL_FRAMES[k].selector); } catch (e) { continue; }
+ for (var i = 0; i < frames.length; i++) trackFrame(frames[i], CAL_FRAMES[k].origin);
+ }
+ }
+
+ // The message must come from a Cal.com frame that is on this page right now,
+ // and from the origin that frame was loaded from. Cal.com re-creates popup
+ // frames, so a frame seen earlier is re-checked live.
+ function sourceIsTracked(message) {
+ for (var i = 0; i < trackedFrames.length; i++) {
+ var item = trackedFrames[i];
+ try {
+ if (item.frame.isConnected === true && item.frame.contentWindow === message.source && item.origin === message.origin) return true;
+ } catch (e) { /* replaced or inaccessible frames fail closed */ }
+ }
+ return false;
+ }
+
+ function isCalOrigin(origin) {
+ for (var k = 0; k < CAL_FRAMES.length; k++) if (CAL_FRAMES[k].origin === origin) return true;
+ return false;
+ }
+
+ function isPlainObject(value) {
+ return !!value && typeof value === 'object' && Object.prototype.toString.call(value) === '[object Object]';
+ }
+
+ function uidSeen(uid) {
+ for (var i = 0; i < seenUids.length; i++) if (seenUids[i] === uid) return true;
+ seenUids.push(uid);
+ return false;
+ }
+
+ function onMessage(message) {
+ if (!message || !message.source || message.source === window) return;
+ if (!isCalOrigin(message.origin)) return;
+ // A frame added since the last scan (a popup that just opened) is picked up here.
+ if (!sourceIsTracked(message)) {
+ scan(document);
+ if (!sourceIsTracked(message)) return;
+ }
+ var data = message.data;
+ if (typeof data === 'string') {
+ try { data = JSON.parse(data); } catch (e) { return; }
+ }
+ // Only a completed new booking. Reschedules (rescheduleBookingSuccessfulV2)
+ // and the deprecated V1 events, which carry the attendee's details, never match.
+ if (!isPlainObject(data) || data.originator !== 'CAL' || data.type !== 'bookingSuccessfulV2') return;
+ var booking = data.data;
+ if (!isPlainObject(booking) || typeof booking.uid !== 'string' || !UID_PATTERN.test(booking.uid)) return;
+ if (uidSeen(booking.uid)) return;
+ // Only these three values are copied. The booking title names the attendee,
+ // so it and every other field are left behind.
+ var push = { event: 'calcom_booking_successful', booking_uid: booking.uid };
+ if (typeof booking.eventTypeId === 'number' && isFinite(booking.eventTypeId)) push.event_type_id = String(booking.eventTypeId);
+ if (typeof booking.status === 'string' && STATUS_PATTERN.test(booking.status)) push.booking_status = booking.status;
+ window.dataLayer.push(push);
+ }
+
+ function start() {
+ if (typeof document === 'undefined') return;
+ scan(document);
+ if (typeof MutationObserver === 'undefined' || !document.documentElement) return;
+ try {
+ var observer = new MutationObserver(function (mutations) {
+ for (var i = 0; i < mutations.length; i++) {
+ var added = mutations[i].addedNodes || [];
+ for (var j = 0; j < added.length; j++) {
+ var node = added[j];
+ if (node && node.tagName === 'IFRAME') scan(document);
+ else scan(node);
+ }
+ if (mutations[i].type === 'attributes' && mutations[i].attributeName === 'src') scan(document);
+ }
+ });
+ observer.observe(document.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: ['src'] });
+ } catch (e) {}
+ }
+
+ if (typeof document !== 'undefined') {
+ if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start, false);
+ else start();
+ }
+ window.addEventListener('message', onMessage, false);
+})();
diff --git a/skills/conversion-tracking/references/browser-side.md b/skills/conversion-tracking/references/browser-side.md
index 14b0eff..d8405bd 100644
--- a/skills/conversion-tracking/references/browser-side.md
+++ b/skills/conversion-tracking/references/browser-side.md
@@ -79,7 +79,7 @@ gtag('set', 'user_data', {
### The GTM route and the recipe system
-With GTM installed, prefer importing a prebuilt container over hand-building tags. This skill ships importable recipes for 19 form and booking tools, 4 universal patterns, and 6 destinations:
+With GTM installed, prefer importing a prebuilt container over hand-building tags. This skill ships importable recipes for 20 form and booking tools, 4 universal patterns, and 6 destinations:
```
python3 ../scripts/build_recipe.py --tool gravity-forms --send google-ads \
diff --git a/skills/conversion-tracking/references/conversion-moments.md b/skills/conversion-tracking/references/conversion-moments.md
index 0d034af..2c889a2 100644
--- a/skills/conversion-tracking/references/conversion-moments.md
+++ b/skills/conversion-tracking/references/conversion-moments.md
@@ -2,7 +2,7 @@
Load this to establish or diagnose the conversion moment. Section 1 is the lead-gen problem (success must be inferred from a browser signal, and every tool signals differently); it carries literal, grep-able strings for working from (A) form mechanics, (B) static page source, (C) a headless browser, and (D) a codebase. Section 2 covers the moments this repo ships tested detectors for. Section 3 is the long tail. Section 4 is ecommerce, where the problem mostly does not exist.
-**Fix assets.** When a finding here names a missing or wrong detection hook, the fix usually already exists in this skill. Tested listeners for 19 tools live in `../assets/snippets/` (paste-in JS) and `../assets/gtm-recipes/detect/` (importable GTM containers), both pushing the canonical dataLayer event names listed in `../assets/gtm-recipes/event-map.json` (for example `gravity_form_submitted`, `typeform_form_submitted`, `calendly_event_scheduled`). Diagnose against those exact names, fix by installing those exact assets.
+**Fix assets.** When a finding here names a missing or wrong detection hook, the fix usually already exists in this skill. Tested listeners for 20 tools live in `../assets/snippets/` (paste-in JS) and `../assets/gtm-recipes/detect/` (importable GTM containers), both pushing the canonical dataLayer event names listed in `../assets/gtm-recipes/event-map.json` (for example `gravity_form_submitted`, `typeform_form_submitted`, `calendly_event_scheduled`). Diagnose against those exact names, fix by installing those exact assets.
## 1. Lead gen
@@ -25,6 +25,8 @@ Stacking complications: multi-step forms (only final step converts; step events
**Calendly** - iframe. Script `assets.calendly.com/assets/external/widget.js`; `<div class="calendly-inline-widget" data-url=...>`. Parent messages where `e.data.event` starts with `"calendly."`: profile_page_viewed, event_type_viewed, date_and_time_selected, **event_scheduled** (the conversion). Payload has event.uri + invitee.uri only - NO email (enhanced conversions need invitee API or prefill capture). Beware: date_and_time_selected ≠ booked.
+**Cal.com** - iframe. Cal.com's embed code (inline, popup, floating button) renders from `https://app.cal.com`, and a booking page pasted in as a plain iframe loads from `https://cal.com`. A new booking posts `{originator: 'CAL', type: 'bookingSuccessfulV2', data: {uid, eventTypeId, status, ...}}` to the parent from the frame's own origin. `cal-com.js` fires once per booking on `bookingSuccessfulV2`, accepted only from a Cal.com iframe on the page, and trusts each frame only for the origin its address starts with, so both setups work. Reschedules never count, and the deprecated `bookingSuccessful` (which carries the attendee's name and email) is never used. Bookings the host must confirm fire straight away with `booking_status` `PENDING`; add a trigger condition on `ACCEPTED` to count only confirmed ones. It doesn't cover self-hosted Cal.com. It was live-checked 15 Oct 2026 with real bookings through all four setups (inline, popup, floating button and plain iframe).
+
**HubSpot Forms** - TWO variants, check BOTH:
- Legacy v2: `js.hsforms.net/forms/embed/v2.js` + `hbspt.forms.create({portalId, formId})`; renders INLINE mostly. Window message events: `event.data.type === 'hsFormCallback'`, `event.data.eventName` ∈ onFormReady | onFormSubmit | **onFormSubmitted** (use this, post-success) | onFormFailedValidation; `event.data.id` = form GUID.
- New v4: `js.hsforms.net/forms/embed/<portalId>.js` + `<div class="hs-form-frame" data-form-id=...>`; renders in IFRAME. Real DOM events on window: `hs-form-event:on-ready`, **`hs-form-event:on-submission:success`**, `:failed`, `:on-interaction:navigate`; `event.detail.formId`; helper `window.HubSpotFormsV4` (has getConversionId()).
@@ -173,6 +175,7 @@ python3 ../scripts/build_recipe.py --tool <slug> --send <google-ads|ga4|meta|lin
| Slug | Tool | Moment | dataLayer event |
|---|---|---|---|
+| `cal-com` | Cal.com | meeting booked | `calcom_booking_successful` |
| `calendly` | Calendly | meeting booked | `calendly_event_scheduled` |
| `contact-form-7` | Contact Form 7 | form submission | `contact_form_7_submitted` |
| `divi-forms` | Divi Forms | form submission | `divi_form_submitted` |
@@ -194,7 +197,8 @@ python3 ../scripts/build_recipe.py --tool <slug> --send <google-ads|ga4|meta|lin
| `ws-form` | WS Form | form submission | `ws_form_submitted` |
**Detection confidence.** Most of these fire on the tool's own success event or on a
-confirmed success state, which is exact. `framer-forms` fires when Framer's own form
+confirmed success state, which is exact. `cal-com` also counts bookings still waiting for
+the host to confirm, marked `booking_status` `PENDING`. `framer-forms` fires when Framer's own form
endpoint answers its request with success. `squarespace-forms` fires only once Squarespace
confirms the save, through its own success markers or its save request, never on the
submit alone. `wix-forms` fires when Wix's own thank-you
@@ -222,10 +226,10 @@ Some of these tools also have native server-side integrations from their own pla
managed tools listed there may cover them as built-in triggers; both live in `server-side.md`. What
"no snippet" means is only that this skill's free browser-side detector does not exist yet.
-**Shape 1, page listener** (31): ActiveCampaign, Kit, AWeber, Mailchimp, Klaviyo, HubSpot
+**Shape 1, page listener** (30): ActiveCampaign, Kit, AWeber, Mailchimp, Klaviyo, HubSpot
Forms, Marketo, Pipedrive, Duda, Avada, Beaver Builder, GoHighLevel, Unbounce,
Instapage, Leadpages, Paperform, Fillout, Formstack, Zoho Forms, HelloBar, OptinMonster,
-ConvertBox, Thrive Leads, Cal.com, Acuity, HubSpot Meetings, Chili Piper, Intercom, Crisp,
+ConvertBox, Thrive Leads, Acuity, HubSpot Meetings, Chili Piper, Intercom, Crisp,
Tawk.to, Drift.
**Shape 2, WordPress but not a form submit** (6): LearnDash, LearnPress, Tutor LMS, Paid
diff --git a/skills/conversion-tracking/references/google-ads.md b/skills/conversion-tracking/references/google-ads.md
index 11efdef..05fb37a 100644
--- a/skills/conversion-tracking/references/google-ads.md
+++ b/skills/conversion-tracking/references/google-ads.md
@@ -16,7 +16,7 @@ Guided setup for wiring a form or booking tool to Google Ads. The agent usually
You need three things:
- Access to the Google Ads account (the user has this, you guide them).
-- The form or booking tool in play. This skill has detection recipes for 19 form and booking tools, plus 4 universal patterns (phone clicks, file downloads, thank-you pages, and generic AJAX forms). The full list with canonical dataLayer event names lives in `../assets/gtm-recipes/event-map.json` and `../assets/snippets/README.md`. Example, Gravity Forms pushes `gravity_form_submitted`. Supported tools are Calendly, Contact Form 7, Divi Forms, Elementor Forms, Fluent Forms, Formidable Forms, Forminator, Framer Forms, Gravity Forms, Jotform, Ninja Forms, Squarespace Forms, Tally, Typeform, Webflow Forms, Wix Forms, Wix Bookings, WPForms, and WS Form.
+- The form or booking tool in play. This skill has detection recipes for 20 form and booking tools, plus 4 universal patterns (phone clicks, file downloads, thank-you pages, and generic AJAX forms). The full list with canonical dataLayer event names lives in `../assets/gtm-recipes/event-map.json` and `../assets/snippets/README.md`. Example, Gravity Forms pushes `gravity_form_submitted`. Supported tools are Cal.com, Calendly, Contact Form 7, Divi Forms, Elementor Forms, Fluent Forms, Formidable Forms, Forminator, Framer Forms, Gravity Forms, Jotform, Ninja Forms, Squarespace Forms, Tally, Typeform, Webflow Forms, Wix Forms, Wix Bookings, WPForms, and WS Form.
- A decision on the install path. Check the site's page source for a `GTM-` container snippet, or ask the user. If GTM is installed, use Path A. If not, use Path B. Never do both, that double counts.
Also do a quick duplicate pre-check before installing anything. Fetch the page source and look for an existing `AW-` ID, a `gtag('event', 'conversion'` call, or an existing Google Ads conversion tag inside the GTM container. If the same real-world action is already being tracked, fix or replace that setup rather than adding a second one on top. Two tags for one form is the classic overcounting setup.
@@ -40,7 +40,7 @@ End state, GTM does all the listening and firing, and nothing gets pasted into t
**Step 1 - Create the conversion action in Google Ads**
- **Goal.** Create a Website conversion action so Google Ads has something to record submissions against.
-- **Do this.** Ask the user to sign in to Google Ads, click the Goals icon in the left menu, then Conversions, then Summary, then click + Create conversion action (older accounts show + New conversion action). Choose Website. If Google asks for the website address and scans the site, skip the "Automatically without code" suggestions and choose to add a conversion action manually. Set the category to Submit lead form (use Book appointment for Calendly or Wix Bookings), give it a clear name like "Lead form submitted", leave value off or use one value per conversion, set counting to One, then save.
+- **Do this.** Ask the user to sign in to Google Ads, click the Goals icon in the left menu, then Conversions, then Summary, then click + Create conversion action (older accounts show + New conversion action). Choose Website. If Google asks for the website address and scans the site, skip the "Automatically without code" suggestions and choose to add a conversion action manually. Set the category to Submit lead form (use Book appointment for Cal.com, Calendly or Wix Bookings), give it a clear name like "Lead form submitted", leave value off or use one value per conversion, set counting to One, then save.
- **Expect to see.** The new action appears under Goals, Conversions, Summary with status "Unverified". That status is normal at this point.
- **On error.** If the user only sees a simplified screen with no Goals menu, the account is in Smart Mode and needs switching to expert mode first. If the only option offered tracks page visits by URL, they went down the "Automatically without code" route, which counts page loads rather than real submissions. Go back and add the action manually.
@@ -54,7 +54,7 @@ End state, GTM does all the listening and firing, and nothing gets pasted into t
- **Goal.** Produce 1 GTM container file that bundles the tool's detection tag, the Google Ads conversion tag, and a Conversion Linker tag.
- **Do this.** Run this, substituting the tool key from `../assets/gtm-recipes/event-map.json` and the 2 values from Step 2. `python3 ../scripts/build_recipe.py --tool {tool} --send google-ads --conversion-id {id} --conversion-label {label} -o import-me.json` The script uses only the Python standard library and can run from any folder, paths resolve relative to the script file.
- **Expect to see.** The script prints "wrote import-me.json" plus which dataLayer event it detects and where it sends.
-- **On error.** "invalid choice" on --tool means the tool key is misspelled or unsupported, check the 23 keys in `../assets/gtm-recipes/event-map.json`. A complaint about missing --conversion-id or --conversion-label means Step 2 values were not passed.
+- **On error.** "invalid choice" on --tool means the tool key is misspelled or unsupported, check the 24 keys in `../assets/gtm-recipes/event-map.json`. A complaint about missing --conversion-id or --conversion-label means Step 2 values were not passed.
**Step 4 - Import the file into GTM**
- **Goal.** Load the 3 tags and their trigger into the site's existing GTM container without touching anything already there.