What PostHog Does
PostHog captures every meaningful action a user takes in your app and lets you analyze those actions as events, funnels, and retention curves. Its session replay feature records the full screen of a user’s session so you can watch exactly what happened — no guessing required. PostHog is self-hostable, but the cloud version at posthog.com requires no infrastructure to set up.Prerequisites
Before connecting PostHog to Rey, make sure you have:- A PostHog account with a project created.
- Your PostHog API key — find it in PostHog under Project Settings → Project API Key.
Connect PostHog to Rey
Create a PostHog project and copy your API key
Log in to PostHog and create a new project (or use an existing one). Navigate to Project Settings → Project API Key and copy the key. This is a write-only ingestion key — it is safe to include in your app.
Enter your API key in Rey
In the Rey editor, open the Integrations panel, select PostHog, and paste your API key into the API Key field.
Save and verify the connection
Click Save. Rey activates the PostHog integration and begins sending events immediately. A green status indicator appears on the PostHog card in the Integrations panel. Open your PostHog dashboard and navigate to Events — you should see incoming events within a few seconds of your next app session.
What Rey Tracks Automatically
Once connected, Rey sends the following events to PostHog without any additional configuration:| Event | Description |
|---|---|
$screen | Fired each time a user views a new screen |
$autocapture | Captures button taps and interactive element interactions |
$navigate | Fired on every navigation action between screens |
Watch Session Replays
PostHog records full session replays of your users’ in-app experience. To watch a replay:- In PostHog, go to Session Replays in the left sidebar.
- Filter by date, user property, or event to find the sessions you care about.
- Click any session to watch the recording. You’ll see every tap, scroll, and screen transition exactly as the user experienced it.
Analyze Funnels
Create conversion funnels in PostHog to measure how many users move through a multi-step flow — like onboarding, sign-up, or a purchase sequence.- In PostHog, go to Insights → Create New Insight → Funnel.
- Add the steps of your flow as events (for example:
$screen: Welcome → $screen: Sign Up → sign_up_completed). - PostHog calculates the conversion rate at each step and shows where users drop off.
Ask Rey AI About Your PostHog Data
Rey AI can query your PostHog data directly to answer product questions in plain language. With PostHog connected, you can ask Rey AI things like:- “Where are users dropping off in onboarding?”
- “Which screen has the highest exit rate?”
- “How many users completed sign-up in the last 7 days?”
Can I send custom events to PostHog from Rey?
Can I send custom events to PostHog from Rey?
Yes. Add a Track Event action to any button, gesture, or trigger in the Rey editor. Enter a custom event name and optional properties. Those events appear in PostHog immediately and can be used in funnels, retention charts, and session replay filters.
Does PostHog work with feature flags?
Does PostHog work with feature flags?
Yes. You can create feature flags in the PostHog dashboard and use them to roll out new screens or features to a percentage of users. Rey reads PostHog feature flag values at runtime and can show or hide content based on flag state — ask Rey AI for guidance on setting this up.
Is PostHog GDPR compliant?
Is PostHog GDPR compliant?
PostHog Cloud (EU region) and self-hosted PostHog are both GDPR-compliant. If you need data to stay in the EU, create your PostHog project in the EU cloud region. Rey does not require any additional configuration — just use the API key from your EU-region project.