Skip to content

feat(seer): Add source field to coding integration analytics and expand coverage#107528

Merged
JoshFerge merged 2 commits intomasterfrom
jferg/coding-integration-analytics-v2
Feb 3, 2026
Merged

feat(seer): Add source field to coding integration analytics and expand coverage#107528
JoshFerge merged 2 commits intomasterfrom
jferg/coding-integration-analytics-v2

Conversation

@JoshFerge
Copy link
Member

@JoshFerge JoshFerge commented Feb 3, 2026

Summary

Adds comprehensive analytics tracking for coding integration interactions:

New Events

  1. coding_integration.install_clicked - Tracks clicks on "Install" buttons

    • source: 'cta' - From CTA components
    • source: 'settings' - From settings page (if applicable)
  2. coding_integration.setup_handoff_clicked - Tracks setup/enable handoff clicks

    • source: 'cta' - From CursorIntegrationCta component
    • source: 'settings_dropdown' - From legacy Seer settings dropdown
    • source: 'settings_toggle' - From new triage-signals-v0 toggle
  3. coding_integration.send_to_agent_clicked - Tracks "Send to Cursor/Copilot" clicks

    • source: 'autofix' - From regular autofix root cause page
    • source: 'explorer' - From explorer autofix

Files Changed

  • seerAnalyticsEvents.tsx - Added event definitions
  • cursorIntegrationCta.tsx - Added source field to existing events
  • githubCopilotIntegrationCta.tsx - Added install click tracking
  • projectSeer/index.tsx - Added tracking for settings dropdown and toggle
  • autofixRootCause.tsx - Added send to agent tracking
  • useExplorerAutofix.tsx - Added send to agent tracking for explorer

Test plan

  • Verify coding_integration.install_clicked fires with correct source when clicking install buttons
  • Verify coding_integration.setup_handoff_clicked fires with correct source from CTA, dropdown, and toggle
  • Verify coding_integration.send_to_agent_clicked fires when clicking "Send to Cursor/Copilot" in autofix
  • Verify coding_integration.send_to_agent_clicked fires when clicking "Send to Cursor/Copilot" in explorer

…nd coverage

Add `source` field to distinguish where analytics events originate:
- `cta`: From CursorIntegrationCta or GithubCopilotIntegrationCta components
- `settings_dropdown`: From legacy Seer settings dropdown
- `settings_toggle`: From new triage-signals-v0 toggle

Expand analytics coverage to:
- GithubCopilotIntegrationCta install button
- ProjectSeer settings page (both dropdown and toggle handlers)
@JoshFerge JoshFerge requested a review from a team as a code owner February 3, 2026 19:06
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 3, 2026
…xplorer

Track when users click "Send to Cursor/Copilot" with:
- `coding_integration.send_to_agent_clicked` event
- `source: 'autofix'` from regular autofix root cause page
- `source: 'explorer'` from explorer autofix
- Includes provider, group_id, user_id
@JoshFerge JoshFerge merged commit 38631ed into master Feb 3, 2026
60 checks passed
@JoshFerge JoshFerge deleted the jferg/coding-integration-analytics-v2 branch February 3, 2026 19:26
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
…nd coverage (#107528)

## Summary
Adds comprehensive analytics tracking for coding integration
interactions:

### New Events
1. **`coding_integration.install_clicked`** - Tracks clicks on "Install"
buttons
   - `source: 'cta'` - From CTA components
   - `source: 'settings'` - From settings page (if applicable)

2. **`coding_integration.setup_handoff_clicked`** - Tracks setup/enable
handoff clicks
   - `source: 'cta'` - From CursorIntegrationCta component
   - `source: 'settings_dropdown'` - From legacy Seer settings dropdown
   - `source: 'settings_toggle'` - From new triage-signals-v0 toggle

3. **`coding_integration.send_to_agent_clicked`** - Tracks "Send to
Cursor/Copilot" clicks
   - `source: 'autofix'` - From regular autofix root cause page
   - `source: 'explorer'` - From explorer autofix

### Files Changed
- `seerAnalyticsEvents.tsx` - Added event definitions
- `cursorIntegrationCta.tsx` - Added source field to existing events
- `githubCopilotIntegrationCta.tsx` - Added install click tracking
- `projectSeer/index.tsx` - Added tracking for settings dropdown and
toggle
- `autofixRootCause.tsx` - Added send to agent tracking
- `useExplorerAutofix.tsx` - Added send to agent tracking for explorer

## Test plan
- [ ] Verify `coding_integration.install_clicked` fires with correct
`source` when clicking install buttons
- [ ] Verify `coding_integration.setup_handoff_clicked` fires with
correct `source` from CTA, dropdown, and toggle
- [ ] Verify `coding_integration.send_to_agent_clicked` fires when
clicking "Send to Cursor/Copilot" in autofix
- [ ] Verify `coding_integration.send_to_agent_clicked` fires when
clicking "Send to Cursor/Copilot" in explorer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants