Skip to content

feat(analytics): instrument OAuth signup drop-off in PostHog - #4459

Merged
tyler-dane merged 1 commit into
mainfrom
cursor/oauth-signup-posthog-65b4
Oct 14, 2026
Merged

tyler-dane merged 1 commit into
mainfrom
cursor/oauth-signup-posthog-65b4

Conversation

@tyler-dane

Copy link
Copy Markdown
Contributor

Fixes #4458

What and why

Google/Microsoft/Apple OAuth signup drop-off was hard to measure in PostHog because callback failures often never reached client-side signup_failed, and server token exchange was invisible to the browser funnel. This change embeds the PostHog anon distinct id in OAuth state, relays provider callback queries to backend GET /auth/:provider/callback for server captures, and adds aligned client events (oauth_callback_received, oauth_failed) while keeping legacy oauth_redirect_started, signup_failed, and signup_completed / login_completed.

Verify

VERDICT: PASS

Checks: test:core, test:web, test:backend:fast, type-check, lint, knip, test:a11y, test:e2e (after bunx playwright install chromium).

Open in Web Open in Cursor 

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane marked this pull request as ready for review October 14, 2026 14:17
@tyler-dane
tyler-dane added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 18538b8 Oct 14, 2026
23 checks passed
@tyler-dane
tyler-dane deleted the cursor/oauth-signup-posthog-65b4 branch October 14, 2026 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[agent] Instrument Google OAuth signup drop-off in PostHog

2 participants