Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"fzf": "^0.5.2",
"inversify": "catalog:",
"lucide-react": "^1.7.0",
"posthog-js": "^1.283.0",
"posthog-js": "^1.378.0",
Comment thread
pauldambra marked this conversation as resolved.
"radix-themes-tw": "0.2.3",
"react-hotkeys-hook": "^4.4.4",
"react-markdown": "^10.1.0",
Expand Down
7 changes: 7 additions & 0 deletions packages/ui/src/shell/posthogAnalyticsImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,15 @@ export function initializePostHog(sessionId?: string) {
}

posthog.init(apiKey, {
defaults: "2026-05-30",
Comment thread
pauldambra marked this conversation as resolved.
Comment thread
pauldambra marked this conversation as resolved.
Comment thread
pauldambra marked this conversation as resolved.
api_host: apiHost,
ui_host: uiHost,
// The epoch turns capture_pageview into "history_change". This app routes via
// createHashHistory() (packages/ui/src/router/router.ts), so the route lives in
// the URL hash and $pathname is identical for every screen — automatic pageviews
// would collapse all routes into one and corrupt route-level analytics. Opt out
// and rely on explicit instrumentation instead.
capture_pageview: false,
disable_session_recording: false,
Comment thread
pauldambra marked this conversation as resolved.
session_idle_timeout_seconds: SESSION_IDLE_TIMEOUT_SECONDS,
...(sessionId ? { bootstrap: { sessionID: sessionId } } : {}),
Expand Down
40 changes: 21 additions & 19 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading