feat(analytics): Plausible analytics phase 1 (visitors, imports/exports, persona)

Aperta
#796 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@DerekRoberts ci sta già lavorando.

Dal 24/10/2026.

  • #799 di @DerekRoberts — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

enhancement

Priority: high. Ships together with the privacy note issue (linked below).

Goal

Count usage without collecting personal information. The app has no persistent storage and redeploys often, so everything goes to Plausible. Nothing is stored in the app.

Scope

  • Add Plausible: cookieless, no raw IPs stored. Plausible counts daily unique visitors with its own rotating salted hash, so we don't need any extra code for that.
  • Custom events:
    • Import with property result: success|failure
    • Export with property result: success|failure
    • Persona Selected (mode/persona) with property persona: <name>
  • Events carry only the event name and simple enumerated properties. Never content, file names, question/answer text, or anything the user typed.

Done when

  • Plausible script/API added, configured by env (e.g. domain); if unset, nothing is sent
  • Unique visitors show in Plausible with no cookies set and no IPs logged by the app
  • Import/export success and failure events fire and appear in Plausible
  • Persona/mode selection event fires with the persona name only
  • Tests confirm event payloads contain no content, file names or user input
  • Analytics failure never breaks or slows a user action
  • One PR, CI green, no warnings/errors in test output

Related: #340 (operational telemetry, separate scope; keep payload rules consistent).

Lingua principale
Python
Stelle
2
Fork
1
Merge medio
4h 16m
PR unite (30g)
38

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MinionTech/vexilon

Tutte le issue di MinionTech/vexilon

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.