Commit cb29189
feat(web): add PostHog events for user creation and Ask GitHub login wall (#933)
* feat: add wa_user_created PostHog event on successful sign-up
Fire a `wa_user_created` telemetry event in the NextAuth `onCreateUser`
handler so we can track successful sign-ups in PostHog, closing a gap
in the visitor-to-sign-up conversion funnel.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: add wa_user_created PostHog event on successful sign-up
Fire a `wa_user_created` telemetry event in the NextAuth `onCreateUser`
handler so we can track successful sign-ups in PostHog, closing a gap
in the visitor-to-sign-up conversion funnel.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(web): add PostHog events for user creation and Ask GitHub login wall
- Add `wa_user_created` event fired on successful user sign-up
- Add `wa_askgh_login_wall_prompted` event fired when an unauthenticated
user attempts to ask a question on Ask GitHub and is shown the login modal
- Add debug logging to server-side PostHog event capture
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* docs: update CHANGELOG with wa_askgh_login_wall_prompted event
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat(web): add wa_askgh_repo_indexed PostHog event
Fires when a repo completes indexing on Ask GitHub, capturing the repo name.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* revert: remove wa_askgh_repo_indexed, use existing backend_repo_first_indexed
backend_repo_first_indexed already fires server-side in repoIndexManager.ts
when a repo is first indexed, which is more reliable than client-side tracking.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: remove debug logging from posthog captureEvent
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9173835 commit cb29189
File tree
4 files changed
+14
-1
lines changed- packages/web/src
- app/[domain]/askgh/[owner]/[repo]/components
- lib
4 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
230 | 235 | | |
231 | 236 | | |
232 | 237 | | |
| |||
0 commit comments