The consent check someone missed
Analytics that fires on page load, with a banner bolted on later, needs a guard at every call site. One missed guard is a compliance incident.
Zie wat traag is en wat stuk ging, zonder mensen te volgen die nee zeiden.
Zie wat traag is en wat stuk ging, zonder mensen te volgen die nee zeiden.
0
tracking events before the user says yes
1
place where all error codes live
2
tools that vanish from the build if unset
Zonder een gedeelde basis bouwt elk team deze randgevallen opnieuw — en anders.
Analytics that fires on page load, with a banner bolted on later, needs a guard at every call site. One missed guard is a compliance incident.
A user reports a failure with no reference, or worse, pastes a raw stack trace. Support has nothing stable to match against a real captured event.
SDKs that assume their keys exist crash local development, ship dead bundle weight, or quietly behave differently between environments.
Het mechanisme van begin tot eind, zoals het in de repository is geïmplementeerd.
Consent comes first
Every tracking call checks the user's analytics cookie choice. On a yes, the tracker loads lazily, and a listener catches users who say yes later in the session.
Errors get captured with context
Error reporting filters out noise and tags each event with structured context like org, project, and job. In development, events log locally instead of being sent.
Users get a stable reference
Every failure maps through one registry to a support reference like APP-CAPACITY-001 and a safe public message. A released reference always means the same thing, forever.
Missing keys cost nothing
No analytics or error-reporting keys configured? Every helper becomes a no-op and the build drops the unused tools entirely.
Interactief voorbeeld
Deze rondleiding toont het geïmplementeerde backendcontract zonder account, credentials of providercalls.
Interactief voorbeeld
Alleen deterministische voorbeelddata. De interactie gebruikt geen account-, provider- of netwerkverbinding.
Kernpunten
Analytics is a silent no-op until the user accepts the analytics cookie, even if they say yes mid-session.
Error reports are tagged with the org, project, job, and AI details, so you can triage without digging through raw data.
Every API error maps to a short support code and a safe public message users can quote in a ticket.
Technische garanties
Achter de schermen houden autorisatie, tenantgrenzen en foutafhandeling één duidelijke eigenaar. Zo blijft de snelle ervaring voor gebruikers gekoppeld aan veilig herstel als het misgaat.
De grens hierboven is geen claim maar code. Deze bestanden dragen het contract:
src/lib/analytics.tssrc/lib/sentry.tssrc/registries/error-codes.tsdocs/ERROR-CODES.mdDeze functies delen contracten en grenzen met deze pagina.
De documentatie beschrijft dezelfde contracten die deze pagina demonstreert.