Skip to content

Commit 32129b3

Browse files
authored
fix(analytics): disable posthog-js survey rendering in the app
The shared analytics project runs many popover surveys targeted at the PostHog web app; any launched survey without URL/event conditions could render inside PostHog Code. The app's own survey UI submits responses via captureSurveyResponse, which is unaffected. Generated-By: PostHog Code Task-Id: 46939c2b-b77a-4c50-b13b-4d464103e6ac
1 parent 46f300a commit 32129b3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/ui/src/shell/posthogAnalyticsImpl.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ export function initializePostHog(sessionId?: string) {
7979
session_recording: {
8080
captureCanvas: { recordCanvas: false },
8181
},
82+
// The shared analytics project runs many popover surveys aimed at the
83+
// PostHog web app; any one without URL/event conditions would render here
84+
// too. This app only submits survey responses through its own UI
85+
// (captureSurveyResponse), which posthog-js survey rendering being off
86+
// does not affect.
87+
disable_surveys: true,
8288
session_idle_timeout_seconds: SESSION_IDLE_TIMEOUT_SECONDS,
8389
...(sessionId ? { bootstrap: { sessionID: sessionId } } : {}),
8490
capture_exceptions: import.meta.env.DEV

0 commit comments

Comments
 (0)