Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.
JavaScript agent-skillsai-agentsai-seoclaudeclaude-codeclaude-code-pluginclaude-skillscodexcontent-marketingconversion-rate-optimizationcopywritingcursoremail-marketinggenerative-engine-optimizationgrowth-marketingmarketingmarketing-automationsaas-marketingseoskill-md
feat(conversion-tracking): add Acuity Scheduling detection
Aaron Beashelac2efb02ac92
diff --git a/skills/conversion-tracking/SKILL.md b/skills/conversion-tracking/SKILL.mdindex f175939..e42527a 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 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.+Assets: [`assets/snippets/`](assets/snippets/README.md) holds paste-in success detectors for 21 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.## Boundariesdiff --git a/skills/conversion-tracking/assets/gtm-recipes/README.md b/skills/conversion-tracking/assets/gtm-recipes/README.mdindex 895e6d8..87f9890 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 (24 detectors x 6 destinations).+Importable Google Tag Manager containers that produce one import-ready file per tool and destination, no manual tag building (25 detectors x 6 destinations).## The 2 layers-**`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`.+**`detect/` (25 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-acuity-scheduling.json b/skills/conversion-tracking/assets/gtm-recipes/detect/detect-acuity-scheduling.jsonnew file mode 100644index 0000000..1fc1182--- /dev/null+++ b/skills/conversion-tracking/assets/gtm-recipes/detect/detect-acuity-scheduling.json@@ -0,0 +1,160 @@+{+ "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 - Acuity Scheduling",+ "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 - Acuity Scheduling Booking Listener",+ "type": "html",+ "parameter": [+ {+ "type": "TEMPLATE",+ "key": "html",+ "value": "<script>\n(function () {\n 'use strict';\n if (window.__ctDetectAcuity) return;\n window.__ctDetectAcuity = true;\n window.dataLayer = window.dataLayer || [];\n\n // Acuity's booking form gives the page no booking event of its own. This\n // listener pairs with a short snippet the site owner pastes into Acuity's\n // custom conversion tracking field (acuity-snippet.html). Acuity runs that\n // snippet after each booking inside its conversion tracking frame, on\n // https://conversion-tracking-sandbox.acuityinnovation.com, two frames below\n // this page, and it posts the booking's ID to this page only (it names the\n // page's own address as the target). The frame is a grandchild, so it can't\n // be matched to an iframe on the page; it must come from Acuity's origin and\n // sit inside this page's own frame tree.\n var ORIGIN_PATTERN = /^https:\\/\\/([a-z0-9-]+\\.)+acuityinnovation\\.com$/;\n var ID_PATTERN = /^[A-Za-z0-9_-]{1,64}$/;\n var KIND_PATTERN = /^[A-Za-z_-]{1,32}$/;\n var PRICE_PATTERN = /^[0-9]{1,9}(\\.[0-9]{1,4})?$/;\n var seenIds = [];\n\n function isPlainObject(value) {\n return !!value && typeof value === 'object' && Object.prototype.toString.call(value) === '[object Object]';\n }\n\n // A frame inside this page has this page as its top window. A popup or a\n // window this page opened does not.\n function insideThisPage(source) {\n try { return source.top === window; } catch (e) { return false; }\n }\n\n function idSeen(id) {\n for (var i = 0; i < seenIds.length; i++) if (seenIds[i] === id) return true;\n seenIds.push(id);\n return false;\n }\n\n function cleanText(value, max) {\n if (typeof value !== 'string') return '';\n value = value.replace(/[\\u0000-\\u001f\\u007f]/g, ' ').replace(/^\\s+|\\s+$/g, '');\n return value.length > max ? value.slice(0, max) : value;\n }\n\n function onMessage(message) {\n if (!message || !message.source || message.source === window) return;\n if (typeof message.origin !== 'string' || !ORIGIN_PATTERN.test(message.origin)) return;\n if (!insideThisPage(message.source)) return;\n var data = message.data;\n if (!isPlainObject(data) || data.source !== 'gtm-acuity-booking' || data.version !== 1) return;\n if (typeof data.appointment_id !== 'string' || !ID_PATTERN.test(data.appointment_id)) return;\n if (idSeen(data.appointment_id)) return;\n var push = { event: 'acuity_appointment_scheduled', appointment_id: data.appointment_id };\n if (typeof data.kind === 'string' && KIND_PATTERN.test(data.kind)) push.acuity_type = data.kind;\n var type = cleanText(data.appointment_type, 200);\n if (type) push.appointment_type = type;\n if (typeof data.price === 'string' && PRICE_PATTERN.test(data.price)) push.price = data.price;\n window.dataLayer.push(push);\n }\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 - Acuity Appointment Scheduled",+ "type": "CUSTOM_EVENT",+ "customEventFilter": [+ {+ "type": "EQUALS",+ "parameter": [+ {+ "type": "TEMPLATE",+ "key": "arg0",+ "value": "{{_event}}"+ },+ {+ "type": "TEMPLATE",+ "key": "arg1",+ "value": "acuity_appointment_scheduled"+ }+ ]+ }+ ],+ "filter": []+ }+ ],+ "variable": [+ {+ "accountId": "0",+ "containerId": "0",+ "variableId": "1",+ "name": "DLV - Acuity Appointment ID",+ "type": "v",+ "parameter": [+ {+ "type": "TEMPLATE",+ "key": "name",+ "value": "appointment_id"+ },+ {+ "type": "INTEGER",+ "key": "dataLayerVersion",+ "value": "2"+ }+ ]+ },+ {+ "accountId": "0",+ "containerId": "0",+ "variableId": "2",+ "name": "DLV - Acuity Type",+ "type": "v",+ "parameter": [+ {+ "type": "TEMPLATE",+ "key": "name",+ "value": "acuity_type"+ },+ {+ "type": "INTEGER",+ "key": "dataLayerVersion",+ "value": "2"+ }+ ]+ },+ {+ "accountId": "0",+ "containerId": "0",+ "variableId": "3",+ "name": "DLV - Acuity Appointment Type",+ "type": "v",+ "parameter": [+ {+ "type": "TEMPLATE",+ "key": "name",+ "value": "appointment_type"+ },+ {+ "type": "INTEGER",+ "key": "dataLayerVersion",+ "value": "2"+ }+ ]+ },+ {+ "accountId": "0",+ "containerId": "0",+ "variableId": "4",+ "name": "DLV - Acuity Price",+ "type": "v",+ "parameter": [+ {+ "type": "TEMPLATE",+ "key": "name",+ "value": "price"+ },+ {+ "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 filediff --git a/skills/conversion-tracking/assets/gtm-recipes/event-map.json b/skills/conversion-tracking/assets/gtm-recipes/event-map.jsonindex f9c70a5..7ae0cfb 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 @@{+ "acuity-scheduling": {+ "label": "Acuity Scheduling",+ "moment": "meeting booked",+ "event": "acuity_appointment_scheduled"+ },"cal-com": {"label": "Cal.com","moment": "meeting booked",diff --git a/skills/conversion-tracking/assets/snippets/README.md b/skills/conversion-tracking/assets/snippets/README.mdindex e38c2e6..c627761 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 ||---|---|---|---|+| Acuity Scheduling | `acuity-scheduling.js` on the site, plus `acuity-scheduling-field.html` in Acuity | Meeting booked | `acuity_appointment_scheduled` || 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` |@@ -61,6 +62,7 @@ Not every snippet fires on a confirmed success. Some tools expose no success sig| Snippet | Signal type | Exact signal ||---|---|---|+| `acuity-scheduling.js` | Native success event | a message from `acuity-scheduling-field.html`, which Acuity runs after each booking in its Custom Conversion Tracking sandbox frame on `conversion-tracking-sandbox.acuityinnovation.com` and which posts `%id%`, `%type%`, `%appointmentType%` and `%price%` to the site's own address; accepted only from an HTTPS `acuityinnovation.com` frame inside the page, carrying the field snippet's own `source` name and version; once per appointment ID. Reschedules never count. Package and gift certificate purchases fire too, so filter on `acuity_type` equals `appointment` || `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 |@@ -86,6 +88,13 @@ Not every snippet fires on a confirmed success. Some tools expose no success sig| `thank-you-page.js` | DOM-inferred after submit | page path starts with a configured confirmation path || `generic-ajax-form.js` | DOM-inferred after submit | a success message appears within 7s of submit with no visible validation error |+**Acuity note.** Acuity Scheduling needs both of its files, because half the code goes inside Acuity. Acuity tells the page nothing about a booking. What it offers is a Custom Conversion Tracking field, and it runs whatever is pasted there after each booking, inside a sandbox frame on `conversion-tracking-sandbox.acuityinnovation.com`.++1. Paste `acuity-scheduling-field.html` into that field in Acuity (Integrations, then Custom Conversion Tracking), and put your own website address in `SITES`, or nothing counts. Acuity keeps about 2 KB in the field, and this file is about 1.3 KB.+2. Install `acuity-scheduling.js` on the site, or import its GTM recipe.++The field snippet posts `%id%`, `%type%`, `%appointmentType%` and `%price%` to the site's own address, and never reads the visitor's name, email or phone. The listener accepts only HTTPS `acuityinnovation.com` frames inside the page, once per appointment ID. Reschedules never count. Package and gift certificate purchases fire too, so add `acuity_type` equals `appointment` to the trigger to count only bookings. `appointment_type` is the business's own name for the service, so if it names a health service, don't forward it to ad platforms. It passed a live check on 15 Oct 2026 with two real bookings made by hand, because Acuity's booking form has reCAPTCHA, and a refused email counted nothing.+**Jotform note.** Use one method per form, either the thank-you redirect with `thank-you-page.js` or this snippet, never both. This snippet covers Jotform's iframe and script embeds, where Jotform sends the page a completion message, and passed live checks on both, including a submission Jotform's validation rejected. It doesn't cover the full source-code embed, which sends no such message, so use the redirect there. Payment, multi-page, save-and-continue and captcha forms are untested, so prefer the redirect for those too.**PII note for `phone-click.js`.** It pushes the clicked number (`phone_number`) and the link text (`link_text`) to the dataLayer, and any tag can forward those. That is fine for a business's own published numbers. If a page shows visitor-specific numbers (an account page, a "your rep" number pulled from a CRM), remove those two fields from the push before installing.diff --git a/skills/conversion-tracking/assets/snippets/acuity-scheduling-field.html b/skills/conversion-tracking/assets/snippets/acuity-scheduling-field.htmlnew file mode 100644index 0000000..ff5ff14--- /dev/null+++ b/skills/conversion-tracking/assets/snippets/acuity-scheduling-field.html@@ -0,0 +1,28 @@+<!-- Paste this into Acuity's Custom Conversion Tracking field (Integrations, then+ Custom Conversion Tracking). Put your own website address in SITES below, or+ nothing counts. Then install acuity-scheduling.js, or its GTM recipe, on your site. -->+<span hidden id="gtm-acuity-type">%appointmentType%</span>+<script>+(function () {+ // Your website's address: https:// and the domain, nothing after it.+ // Embedded on more than one site? Add each one: ['https://a.com', 'https://b.com']+ var SITES = ['https://www.example.com'];+ var id = '%id%', kind = '%type%', price = '%price%', el = document.getElementById('gtm-acuity-type');+ function clean(v) {+ v = String(v || '').replace(/^\s+|\s+$/g, '');+ return v && !/^%[A-Za-z]+%$/.test(v) ? v : '';+ }+ id = clean(id);+ if (!/^[A-Za-z0-9_-]{1,64}$/.test(id)) return;+ var msg = { source: 'gtm-acuity-booking', version: 1, appointment_id: id };+ kind = clean(kind);+ if (/^[A-Za-z_-]{1,32}$/.test(kind)) msg.kind = kind;+ var type = clean(el && el.textContent);+ if (type) msg.appointment_type = type.slice(0, 200);+ price = clean(price);+ if (price) msg.price = price.slice(0, 32);+ for (var i = 0; i < SITES.length; i++) {+ try { window.top.postMessage(msg, SITES[i]); } catch (e) {}+ }+})();+</script>diff --git a/skills/conversion-tracking/assets/snippets/acuity-scheduling.js b/skills/conversion-tracking/assets/snippets/acuity-scheduling.jsnew file mode 100644index 0000000..06c3121--- /dev/null+++ b/skills/conversion-tracking/assets/snippets/acuity-scheduling.js@@ -0,0 +1,64 @@+/*! Acuity Scheduling conversion detection (MIT)+ * Detects: meeting booked. Pushes dataLayer event: acuity_appointment_scheduled+ * From the conversion-tracking skill in Marketing Skills */+(function () {+ 'use strict';+ if (window.__ctDetectAcuity) return;+ window.__ctDetectAcuity = true;+ window.dataLayer = window.dataLayer || [];++ // Acuity's booking form gives the page no booking event of its own. This+ // listener pairs with a short snippet the site owner pastes into Acuity's+ // custom conversion tracking field (acuity-snippet.html). Acuity runs that+ // snippet after each booking inside its conversion tracking frame, on+ // https://conversion-tracking-sandbox.acuityinnovation.com, two frames below+ // this page, and it posts the booking's ID to this page only (it names the+ // page's own address as the target). The frame is a grandchild, so it can't+ // be matched to an iframe on the page; it must come from Acuity's origin and+ // sit inside this page's own frame tree.+ var ORIGIN_PATTERN = /^https:\/\/([a-z0-9-]+\.)+acuityinnovation\.com$/;+ var ID_PATTERN = /^[A-Za-z0-9_-]{1,64}$/;+ var KIND_PATTERN = /^[A-Za-z_-]{1,32}$/;+ var PRICE_PATTERN = /^[0-9]{1,9}(\.[0-9]{1,4})?$/;+ var seenIds = [];++ function isPlainObject(value) {+ return !!value && typeof value === 'object' && Object.prototype.toString.call(value) === '[object Object]';+ }++ // A frame inside this page has this page as its top window. A popup or a+ // window this page opened does not.+ function insideThisPage(source) {+ try { return source.top === window; } catch (e) { return false; }+ }++ function idSeen(id) {+ for (var i = 0; i < seenIds.length; i++) if (seenIds[i] === id) return true;+ seenIds.push(id);+ return false;+ }++ function cleanText(value, max) {+ if (typeof value !== 'string') return '';+ value = value.replace(/[\u0000-\u001f\u007f]/g, ' ').replace(/^\s+|\s+$/g, '');+ return value.length > max ? value.slice(0, max) : value;+ }++ function onMessage(message) {+ if (!message || !message.source || message.source === window) return;+ if (typeof message.origin !== 'string' || !ORIGIN_PATTERN.test(message.origin)) return;+ if (!insideThisPage(message.source)) return;+ var data = message.data;+ if (!isPlainObject(data) || data.source !== 'gtm-acuity-booking' || data.version !== 1) return;+ if (typeof data.appointment_id !== 'string' || !ID_PATTERN.test(data.appointment_id)) return;+ if (idSeen(data.appointment_id)) return;+ var push = { event: 'acuity_appointment_scheduled', appointment_id: data.appointment_id };+ if (typeof data.kind === 'string' && KIND_PATTERN.test(data.kind)) push.acuity_type = data.kind;+ var type = cleanText(data.appointment_type, 200);+ if (type) push.appointment_type = type;+ if (typeof data.price === 'string' && PRICE_PATTERN.test(data.price)) push.price = data.price;+ window.dataLayer.push(push);+ }++ window.addEventListener('message', onMessage, false);+})();diff --git a/skills/conversion-tracking/references/browser-side.md b/skills/conversion-tracking/references/browser-side.mdindex d8405bd..54a4676 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 20 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 21 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.mdindex 2c889a2..9c7f593 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 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.+**Fix assets.** When a finding here names a missing or wrong detection hook, the fix usually already exists in this skill. Tested listeners for 21 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@@ -27,6 +27,8 @@ Stacking complications: multi-step forms (only final step converts; step events**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).+**Acuity Scheduling** - iframe, and Acuity tells the page nothing (its embed script only posts resize messages). Its Custom Conversion Tracking field (Integrations, then Custom Conversion Tracking) runs HTML after each booking in a sandbox frame on `conversion-tracking-sandbox.acuityinnovation.com`, two frames below the page, with `%id%`, `%type%`, `%appointmentType%` and `%price%` filled in. This is the shipped example of Shape 3 below, where half the code goes inside the vendor's tool. `acuity-scheduling-field.html` goes in that field and posts those four values to the site's own address (put that address in `SITES`, or nothing counts), and `acuity-scheduling.js` on the site accepts only HTTPS `acuityinnovation.com` frames inside the page, once per appointment ID. Acuity keeps about 2 KB in the field, and the snippet is about 1 KB. Reschedules never count. Package and gift certificate purchases fire too, so filter on `acuity_type` equals `appointment`. Public snippets that read `%email%` and post to `"*"` hand the visitor's email to every frame on the page; this one never reads the name, email or phone. It was live-checked 15 Oct 2026 with two real bookings made by hand, because of reCAPTCHA, and a refused email counted nothing.+**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()).@@ -175,6 +177,7 @@ python3 ../scripts/build_recipe.py --tool <slug> --send <google-ads|ga4|meta|lin| Slug | Tool | Moment | dataLayer event ||---|---|---|---|+| `acuity-scheduling` | Acuity Scheduling | meeting booked | `acuity_appointment_scheduled` || `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` |@@ -197,7 +200,10 @@ 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. `cal-com` also counts bookings still waiting for+confirmed success state, which is exact. `acuity-scheduling` fires only when the snippet+Acuity runs after a booking reports it, so it needs that snippet in Acuity too, and it+counts package and gift certificate purchases unless the trigger filters `acuity_type` to+`appointment`. `cal-com` also counts bookings still waiting forthe host to confirm, marked `booking_status` `PENDING`. `framer-forms` fires when Framer's own formendpoint answers its request with success. `squarespace-forms` fires only once Squarespaceconfirms the save, through its own success markers or its save request, never on the@@ -226,10 +232,10 @@ Some of these tools also have native server-side integrations from their own plamanaged 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** (30): ActiveCampaign, Kit, AWeber, Mailchimp, Klaviyo, HubSpot+**Shape 1, page listener** (29): ActiveCampaign, Kit, AWeber, Mailchimp, Klaviyo, HubSpotForms, Marketo, Pipedrive, Duda, Avada, Beaver Builder, GoHighLevel, Unbounce,Instapage, Leadpages, Paperform, Fillout, Formstack, Zoho Forms, HelloBar, OptinMonster,-ConvertBox, Thrive Leads, Acuity, HubSpot Meetings, Chili Piper, Intercom, Crisp,+ConvertBox, Thrive Leads, HubSpot Meetings, Chili Piper, Intercom, Crisp,Tawk.to, Drift.**Shape 2, WordPress but not a form submit** (6): LearnDash, LearnPress, Tutor LMS, Paid@@ -256,7 +262,9 @@ signup, a course completion. There is usually no submit event to hook. Use**Shape 3. Half the code has to go inside the vendor's own tool.** Classic Pardot formsare iframes served from a Salesforce domain, so nothing on the parent page can see insidethem. The fix is code pasted into the vendor's own thank-you or completion field that-messages out to the parent page, plus a listener that catches it. Walk the user through+messages out to the parent page, plus a listener that catches it. `acuity-scheduling` is+the shipped example (`acuity-scheduling-field.html` goes in Acuity's Custom Conversion+Tracking field, `acuity-scheduling.js` catches its message). Walk the user throughthe vendor screen; there is no snippet-only answer.**Shape 3b. The moment only the backend knows.** A SaaS signup, an account created, adiff --git a/skills/conversion-tracking/references/google-ads.md b/skills/conversion-tracking/references/google-ads.mdindex 05fb37a..39460ba 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 usuallyYou 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 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.+- The form or booking tool in play. This skill has detection recipes for 21 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 Acuity Scheduling, 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 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.+- **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 Acuity Scheduling, 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 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.+- **On error.** "invalid choice" on --tool means the tool key is misspelled or unsupported, check the 25 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.