Skip to content

feat: bootstrap PostHog from parent page identity in OSO embed#37

Open
kenyiu wants to merge 6 commits intomainfrom
kenyiu/add-posthog-distinctid-support
Open

feat: bootstrap PostHog from parent page identity in OSO embed#37
kenyiu wants to merge 6 commits intomainfrom
kenyiu/add-posthog-distinctid-support

Conversation

@kenyiu
Copy link
Copy Markdown
Member

@kenyiu kenyiu commented Apr 23, 2026

  • the distinctID and sessionID for posthog will be brought over from frontend.

kenyiu added 6 commits April 24, 2026 00:34
When marimo is embedded as a cross-origin iframe, read posthogDistinctId
and posthogSessionId from the URL fragment and pass them as bootstrap
options to posthog.init(). This stitches iframe events to the parent
page's distinct_id without emitting a spurious $identify event.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant