Restore PostHog session recording - #914
Merged
zahlekhan merged 1 commit intoJul 31, 2026
Merged
Conversation
zahlekhan
marked this pull request as ready for review
July 31, 2026 11:21
zahlekhan
enabled auto-merge (squash)
July 31, 2026 11:21
vishxrad
approved these changes
Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
posthog-jsbrowser package instead of the slim moduledisable_external_dependency_loadingRoot cause
The deferred analytics refactor switched the site to
posthog-js/dist/module.slimand explicitly disabled both external dependency loading and session recording. That configuration continued to capture pageviews but prevented the session recorder from loading.Impact
OpenUI site sessions can be recorded again at the previous 10% sampling rate while retaining deferred PostHog initialization.
Validation
pnpm install --frozen-lockfilepnpm --filter @openuidev/docs exec prettier --check lib/analytics.tspnpm --filter @openuidev/docs exec eslint lib/analytics.tspnpm --filter @openuidev/docs types:checkgit diff --checkThe production docs build was also attempted, but Next.js/Turbopack remained at
Creating an optimized production build ...without further output for several minutes, so it was stopped and is reported as inconclusive rather than passing.