mirror of
https://github.com/Such-Software/such.software.git
synced 2026-10-17 05:32:05 +02:00
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.