Commit 07a6ae1
committed
feat(metrics): bucket md viewer edit volume into LTE500 / LTE1K / GT1K
Adds a session-cumulative edit-batch counter in _onIframeContentChanged
that fires one-shot count events as the user crosses each bucket
threshold:
md/edits/LTE500 first time a session reaches >=500 edit batches
md/edits/LTE1K first time a session reaches >=1000 edit batches
md/edits/GT1K first time a session crosses 1001+ edit batches
Each bucket fires at most once per session, so the funnel reads as
LTE500 >= LTE1K >= GT1K — answering "what fraction of users edit
heavily in the markdown live preview?"
The counter only increments on iframe content changes (md viewer edit
mode), not on direct CodeMirror edits, since CM bypasses
_onIframeContentChanged. A "batch" is a 50ms-debounced burst of edits
(set by the iframe's existing debounce), so the buckets are
representative volumes rather than per-keystroke counts.1 parent 3e171cd commit 07a6ae1
1 file changed
Lines changed: 5 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments