{{define "content"}}{{with .Data}}{{$d := .}}
Your website's forms ("send me a cost comparison", "become a partner") send each answer to EspoCRM as a new Lead, using EspoCRM's own Lead Capture: Supermarket only runs on this computer, so the forms can't post to it. The Lead's description says which form, which page, and which campaign brought the visitor; Plausible counts the forms sent per buying signal.
{{if not .Sites}}Add your website and its Hugo repository under Settings → Profile first.
{{.URL}}: {{.Err}}.
Read {{.Repo}} under Sections and pages first.
Connected: the forms on {{$cur.URL}} send their answers to EspoCRM.
{{else if .Action}}The forms post to {{.Action}}{{if not .Patched}}, without Supermarket's mapping{{end}}.
The forms open an email with the answers filled in: they don't post anywhere yet.
{{end}} {{with .Pages}}Pages with a form: {{join . ", "}}
{{else}}No page has a form section yet. The page builder can add one where the site has the form section type.
This site's form section doesn't post the way Supermarket knows, so it can't be connected automatically.
{{end}}https://…/api/v1/LeadCapture/….Your site must be allowed to post to the CRM: EspoCRM allows every site by default (leadCaptureAllowOrigin in its data/config.php). The test below checks it.
Counted from Plausible: save its key under Settings → Website & sales.
{{end}}The forms tell Plausible when they're sent (a {{.Goal}} event). Add a {{.Goal}} goal (a custom event) in Plausible, and the daily import counts the ones from visits tagged with a signal as interested on its scorecard.
| Day | Signal | Forms | From |
|---|---|---|---|
| {{.At.Format "2 Jan 2006"}} | {{.Signal}} | {{.Count}} | {{.Note}} |
None counted yet.
{{end}} {{end}}{{end}}