Skip to content
Slaap rustigTrust and privacy

Inzicht met toestemming

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

Het probleem dat dit oplost

Zonder een gedeelde basis bouwt elk team deze randgevallen opnieuw — en anders.

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.

"It broke" with nothing to go on

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.

Tools that crash without their keys

SDKs that assume their keys exist crash local development, ship dead bundle weight, or quietly behave differently between environments.

Hoe het werkt

Het mechanisme van begin tot eind, zoals het in de repository is geïmplementeerd.

  1. 1

    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.

  2. 2

    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.

  3. 3

    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.

  4. 4

    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

Bekijk het in werking

Deze rondleiding toont het geïmplementeerde backendcontract zonder account, credentials of providercalls.

Interactief voorbeeld

Explore the implemented decisions

Kies een voorbeeldstatus
Analytics suppressed

Alleen deterministische voorbeelddata. De interactie gebruikt geen account-, provider- of netwerkverbinding.

Kernpunten

Waarom dit belangrijk is

Tracking waits for a yes

Analytics is a silent no-op until the user accepts the analytics cookie, even if they say yes mid-session.

Errors carry context

Error reports are tagged with the org, project, job, and AI details, so you can triage without digging through raw data.

Failures come with a reference

Every API error maps to a short support code and a safe public message users can quote in a ticket.

Technische garanties

Wat dit wel en niet belooft

Veiligheidsgrens

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.

Implementatiebewijs

De grens hierboven is geen claim maar code. Deze bestanden dragen het contract:

  • src/lib/analytics.ts
  • src/lib/sentry.ts
  • src/registries/error-codes.ts
  • docs/ERROR-CODES.md
Vragen

Veelgestelde vragen

Bouw verder op Inzicht met toestemming

De documentatie beschrijft dezelfde contracten die deze pagina demonstreert.