Phase 6 part 3: website lead forms into EspoCRM

Sites → Lead forms sets up the site's forms to create EspoCRM Leads
through its Lead Capture: the address saved and tested with a CORS
preflight, and a pull request adding a script that maps the form's fields
onto a Lead (campaign, page and form in the description). Plausible's
Lead goal is imported per signal as interested.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-22 14:54:26 -07:00
co-authored by Claude Opus 5.5
parent fa4792e0fe
commit 2c42857419
12 changed files with 1003 additions and 9 deletions
+18
View File
@@ -620,6 +620,24 @@ Throughout, also notice:
- [ ] A page that went live, or was removed, shows up in SEO → Search
engines' IndexNow log (when IndexNow is set up).
### Lead forms
- [ ] Sites → Lead forms says how the forms send today (an email), and
lists the pages with a form (/churches/, /partners/, /saas-savings/).
- [ ] Following the steps, create a Lead Capture in EspoCRM with the
payload fields listed; paste its API URL and *Save and test*: it
says the site may post to it, and no Lead appears in EspoCRM.
- [ ] A wrong address (not …/api/v1/LeadCapture/…) is refused.
- [ ] *Open the pull request*: on Gitea it changes `hugo.toml`, the form
section and adds `static/js/supermarket-leads.js`; preview it under
Sites → Previews.
- [ ] After merging, send a form on the live site from a link tagged with a
signal (`?utm_campaign=<signal>`): EspoCRM gets a Lead with the name
split, the email and organization, and the form, page and campaign
in its description. The page says "Connected".
- [ ] With a `Lead` goal added in Plausible, the next day's import counts
it as *interested* on the signal; Lead forms lists it.
## 9. Search
- [ ] Searching for an inventory entry, a fetched item, a post, a prospect