feat(web): count the two moments on the contact form that matter

There is not a single custom event in this codebase, which is why every argument
about the site's copy has been an argument about taste. Two events, a visitor
beginning the contact form and a visitor sending it, turn the hero rewrite that
follows this into a before-and-after instead of an opinion.

`contact-started` fires once per mounted form, on the first real edit rather than
on focus: someone tabbing through on the way elsewhere is not a lead.
`contact-submitted` fires on success. Both carry only which form it was, inquiry
or support.

`track()` does no consent checking of its own on purpose. UmamiAnalytics already
declines to load the script under Global Privacy Control and the script honours
Do Not Track, so `window.umami` is simply absent for a visitor who opted out and
every call is a no-op. A second gate here could disagree with the first. It also
never throws: an analytics call is not worth losing a form submission over.

/privacy now says what we count, in the same commit that starts counting it.
This commit is contained in:
jwinterm
2026-09-05 23:43:57 -04:00
parent abc968fe6f
commit 7208095b06
3 changed files with 139 additions and 42 deletions
+7
View File
@@ -84,6 +84,13 @@ export default function PrivacyPage() {
collected from your visit. We do not use Google Analytics, advertising pixels, or similar
third-party tracking tools on the Site.
</p>
<p className="mt-3">
Alongside page views, we count two things you do on purpose: that someone began filling in
the contact form, and that someone sent it. These are counters, not contents. They record
which of the two forms it was and nothing you typed, and like everything else here they are
not collected at all if Do Not Track or Global Privacy Control is on. We use them to tell
whether a change to the site helped or hurt, rather than guessing.
</p>
<h3 className="text-xl font-medium mt-4 mb-2">Server logs</h3>
<p>