Connect PostHog to Orion
Gaze and friction for the recordings PostHog already has, with nothing added to your site.
Orion predicts where each visitor looked and scores each visit for friction, from session recordings. If PostHog already records your site, connect it and Orion reads those recordings itself. You don't add Orion's tag, your visitors' browsers don't record anything twice, and there is nothing to export.
Set it up
- Press Connect PostHog on Orion's front page, or on the Import page if you're signed in.
- Sign in to PostHog and allow Orion on one project.
- Accept the Terms for your organisation, if you haven't.
That's all. Back on the Import page, Choose which sessions come over is open, so you can leave out what you don't want before anything comes over: Start importing begins at once. Left alone, your recordings start coming over by themselves 10 minutes after you sign in, and new ones follow by themselves. From the front page, with no Orion account, they start straight away.
You don't need an Orion account first. Without one you get a temporary account with your latest 100 recordings. It stays in that browser, for as long as PostHog lets you in. Signing in to the same PostHog project finds it again, and moves it to the browser you signed in from. Sign in with Google to keep it, bring over everything else, and add your team, the tag or an AI agent. If you don't, it's deleted 90 days after you last opened it.
What comes over
Every finished recording in your project, from your website and your phone apps (see Phone apps in Orion), as far back as PostHog has them, up to 89 days. Each one goes to its own site in Orion by its address, and each app to a site named after it: one site for each domain (docs.example.com and www.example.com are both example.com), and one called Local and previews for localhost, local network addresses, tunnels and preview links. Sites are added by themselves as recordings from a new domain arrive, and the Sessions page filters by site. PostHog's internal and test users are left out if your project has them set, and so are recordings with 10 seconds of activity or less, such as a tab left open, unless you choose Every session under Advanced. Orion checks every 6 hours, and the Import page says when it last did. New recordings come first, then older ones, newest first, up to 1,000 sessions a day, so a long history can take a few days. If more new recordings arrive in a day than that, Orion takes that many of them at random, and older ones don't come over.
Last step: send through Orion
Once you're connected, the Import page has one more button: Copy instructions for your coding agent. Paste them into Claude Code, Cursor or any other coding agent, or follow them yourself. They change one setting in your site's PostHog setup, the address its browser SDK sends to (api_host), to https://t.paradigmmachines.ai/ph. Your PostHog snippet or package, your project key and every other option stay as they are.
- Orion passes every request on to PostHog unchanged, and PostHog's answers come back the same way. Your events, recordings, feature flags and surveys keep working in PostHog as before.
- Recordings then come over as each visit ends, about 30 minutes after the visitor's last activity, instead of every 6 hours. The Import page says when your site started sending through Orion.
- Orion keeps the same as from a connected project: the replay, masked, and the page views, clicks, rage and dead clicks, page leaves and errors it reads. Person profiles, IP addresses, your own events, console logs and network requests go on to PostHog and aren't kept.
- Only the browser SDK changes, and a desktop app's (below). Leave server-side and mobile PostHog SDKs as they are.
- If your site sends PostHog traffic through a proxy of its own, such as an
/ingestrewrite, the proxy points at Orion's address instead. - Setting the address back undoes it. If you disconnect, Orion still passes your traffic on to PostHog, so nothing breaks, and keeps none of it.
Desktop apps
A desktop app with no web pages of its own (built with GPUI, SwiftUI or AppKit, Qt, or Tauri or Electron with no hosted page) sends Orion PostHog-format events: its screens, clicks and errors. There is no screen recording, so Orion shows these visits without gaze or a friction score, in a site named after the app.
- With PostHog: keep your project key and set the host of the app's PostHog SDK (posthog-rs for Rust and GPUI) to
https://t.paradigmmachines.ai/ph. Orion passes everything on to PostHog, as for a website. - Without PostHog: use the same host with the key from Orion's Install page as the API key. Orion keeps the events and passes them on nowhere. Plain HTTPS works too:
POST https://t.paradigmmachines.ai/ph/batch/with{"api_key": "<key>", "batch": [<events>]}. - Each event's properties hold
$session_id(a new UUID when the app opens, and again after 30 minutes without use),$app_nameand$os. Send$screenwith$screen_namewhen a screen or window opens,$autocapturewith$event_type"click",$el_text,$xand$yfor each click, and$exceptionwith$exception_messagefor each error. - Orion keeps only those events and those properties. Never put an email address, name or other personal data in an event.
Choose which sessions come over
On the Import page, under Connect PostHog before you sign in, and under the connection after.
- Describe the sessions you want: a sentence such as
onboarding sessions where people signed up and used the app, not our team. Fill in matches its words against your site's own pages and fills in the choices below, says how it read the sentence, and counts the matches. Nothing is saved until you press Save, so check the fields first. It is read by fixed rules on Orion's servers, not by an AI model, and nothing about your visitors is sent anywhere. - Only visits to these pages: any part of the address, one per line, such as
/pricing. - That also went to one of these: a second list, for visits that went to a page of each, such as
/sign-upabove and/dashboardhere. - Leave out visits to these pages, such as
/admin. - Leave out these people: any part of their email in PostHog, one per line, such as your team's domain. PostHog applies this itself, so Orion never sees anyone's email.
- Devices: desktop, phone and tablet, as PostHog names the device each visit was on. All three unless you untick some.
- Visitors: everyone, first visits only, or returning visitors only (a device that had been on your site before). PostHog doesn't keep this, so Orion asks PostHog about each recording as it comes over, and gets back only yes or no. The count of matches doesn't include it.
- Came from: paid ads, a Google Ads click, search or email, as PostHog names each session's channel.
- UTM source and UTM campaign: any part of the first page's utm_source or utm_campaign, in any case. Separate several with commas.
- Countries: two-letter codes, such as
GB, US, as PostHog places each visitor. - Browsers: any part of the browser's name as PostHog gives it, in any case, such as
Chrome, Safari. Safari includes Safari on phones. - Errors: only visits that threw an error.
- Days back, at most: only recordings from the last so many days, from 1 to 89. Empty goes back as far as Orion keeps sessions.
- Advanced: Every session, however short, brings even recordings with no activity at all. Otherwise Seconds of activity, at least, is 10 unless you change it, which skips tabs left open. Sessions a day, at most, is from 1 to 1,000.
Once connected, each change shows how many recordings match. Changing a choice applies at once: more days back carry on from where Orion had stopped, and fewer drop older recordings not brought over yet. The same choices go into the export prompt, if you import by hand.
What Orion reads
- It asks for three read-only permissions, on the one project you pick:
project:read,query:readandsession_recording:read. - From each recording: its replay, and its page views, clicks, rage and dead clicks, page leaves and errors, by name of the properties it needs.
- It doesn't ask for person profiles or IP addresses, and never keeps them.
- Field values are masked as the replay is read, and the unmasked copy is deleted at once. Console logs and network requests are dropped.
Good to know
- Recording is still PostHog's: your plan, your sampling and your retention decide what there is to read.
- Reading recordings uses your project's PostHog API allowance, not your recording quota. Orion waits whenever PostHog says so.
- Web and phone app recordings (iOS, Android, React Native and Flutter). Self-hosted PostHog can't connect: use an export on the Import page.
- If the tag is on your pages too, each visit counts twice. Use one or the other.
Pause or disconnect
Pause or Disconnect on the Import page, or revoke Orion in PostHog, which ends all your connections at once. Disconnecting deletes Orion's tokens for that site, so Orion stops reading that project. Your other connections carry on. If it was your last, Orion's access at PostHog ends too. Sessions already brought over stay until they expire after 90 days or you delete them.
Support
Email ryan@paradigmmachines.ai. See also the privacy policy.