Commit 182f060
feat(web): add posthog event for chat preferences saved
Registers `wa_chat_preferences_saved` in `PosthogEventMap` and fires it
on a successful save from the Chat Preferences page. The `wa_` prefix
is correct here: the event can only originate from the web app.
Properties capture adoption signals without leaking the actual
preference content:
- `dimensionsSet`: count of dimensions the user has chosen (0-6)
- `hasCustomInstructions`: boolean flag for free-text usage
- `customInstructionsLength`: length of the trimmed custom instructions
so we can later distinguish drive-by notes from heavy use
No preference values, level names, or instruction text are sent.
Refs #1242
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 1a7c835 commit 182f060
2 files changed
Lines changed: 16 additions & 1 deletion
File tree
- packages/web/src
- app/(app)/settings/chatPreferences
- lib
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
105 | 112 | | |
106 | 113 | | |
107 | 114 | | |
| |||
115 | 122 | | |
116 | 123 | | |
117 | 124 | | |
118 | | - | |
| 125 | + | |
119 | 126 | | |
120 | 127 | | |
121 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
188 | 196 | | |
189 | 197 | | |
190 | 198 | | |
| |||
0 commit comments