diff --git a/CHANGELOG.md b/CHANGELOG.md index 8550403e..c26753f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to - ✨(frontend) add an audio gauge to the microphone select menu - ✨(frontend) add a sound tester to the output select menu - ✨(frontend) prompt for permissions when toggling a denied device +- ⚗️(frontend) capture console.error in PostHog ### Changed diff --git a/src/frontend/src/features/analytics/hooks/useAnalytics.ts b/src/frontend/src/features/analytics/hooks/useAnalytics.ts index 3d46ac4f..a1c2d372 100644 --- a/src/frontend/src/features/analytics/hooks/useAnalytics.ts +++ b/src/frontend/src/features/analytics/hooks/useAnalytics.ts @@ -42,6 +42,11 @@ export const useAnalytics = ({ person_profiles: 'always', capture_pageview: 'history_change', capture_pageleave: true, + capture_exceptions: { + capture_unhandled_errors: true, + capture_unhandled_rejections: true, + capture_console_errors: true, + }, }) }) }, [id, host, flags_api_host, isDisabled])