Self-hosted Formbricks (anket.sase.tr) replaces PostHog surveys (free-tier branding). PostHog stays the single instrumentation source: capture() forwards allowlisted trigger events (trial_urgency_banner_viewed, subscription_cancelled, onboarding_completed, vin_decode_error, empty_catalog_cta_clicked) to the Formbricks SDK, identify/reset/people-properties mirror into Formbricks attributes, and $pageview registers SPA route changes for no-code triggers. - apps/web/src/lib/formbricks.ts: lazy fire-and-forget wrapper (inert without VITE_FORMBRICKS_APP_URL + VITE_FORMBRICKS_ENV_ID) - CSP: allow anket.sase.tr in connect-src/img-src - Dockerfile + compose: bake the two VITE_ build args Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
3.3 KiB
3.3 KiB