Migrate from PostHog to BillDog
You can bring your PostHog event history and feature flags into BillDog: upload a PostHog batch export as JSON Lines, or pull smaller windows straight from PostHog's API with a personal API key. Then run both SDKs in parallel until the numbers agree.
The usual reason to move from PostHog to BillDog is subscriptions. PostHog is a broad product-analytics suite, but it has no paywall builder, purchase validation or entitlements, so subscription apps on PostHog run a second vendor for billing and pipe revenue in. BillDog keeps paywalls, store purchases, analytics and messaging on one customer record.
It is not an upgrade on analytics depth. PostHog has SQL, a data warehouse, a larger insight library and deeper session replay for mobile, and its free tier is generous. If PostHog's analytics are the reason you chose it, the honest option is to keep it and forward BillDog's subscription events into it, which BillDog already does server-to-server.
If you are consolidating, the procedure below is the safe order: export history, import it, run both SDKs side by side for a billing cycle, and only then switch PostHog off.
You may not need to migrate at all
Both SDKs run in the same app, and BillDog can forward subscription lifecycle events, with revenue, to your PostHog project server-to-server. Many teams stop there: BillDog for paywalls, purchases and messaging, PostHog for analysis. That is a supported end state, not an unfinished migration.
What actually transfers
The honest inventory. Anything not listed here does not come across.
| Item | Transfers? | Notes |
|---|---|---|
| Historical events | Yes | From a PostHog batch export (JSON Lines) or the direct API pull. Event name, distinct_id, timestamp and all properties are kept as recorded |
| Event properties, including $-prefixed ones | Yes | Ingested as-is, so $pageview, $current_url and similar keep their meaning |
| distinct_id | Yes | Each event keeps the distinct_id it was recorded with |
| Person merges ($identify / $create_alias) | No | Not rebuilt. Anonymous events before login stay on the anonymous distinct_id unless you replay identity yourself |
| Person profiles and properties | No | Not imported. Set the properties you target on from the BillDog SDK, or include them as event properties |
| Feature flags: key, description, on/off, rollout, variants and payloads | Yes | Copied by the direct pull. Rollout comes from the flag's release conditions |
| Flag release conditions (person properties, cohorts, per-company rollout) | No | Flags that use them are imported switched OFF, so they never serve wider than in PostHog. Set targeting in BillDog, then enable |
| Cohorts, insights and dashboards | No | Rebuild them; the underlying events will be there |
| Experiments | No | Assignment history does not transfer. Finish running experiments before you cut over |
| Session replays and surveys | No | Recordings and survey responses stay in PostHog |
How the migration runs
- 1
Choose the history window, then export it from PostHog
For anything beyond a few days of events, use a PostHog batch export to S3 (or an S3-compatible bucket such as R2 or GCS) with the events model, the JSON Lines format, and gzip or no compression — BillDog's importer does not read Parquet or zstd. Batch exports can backfill history, and PostHog bills them per row exported after the first million. Imported events are metered on BillDog's side too, so pick the window you actually need first.
- 2
Decide what a user is, and write it down
PostHog groups anonymous and identified distinct_ids into one person when you call identify. BillDog imports each event under the distinct_id it was recorded with and does not rebuild those merges. If your funnels start before login, decide now whether that matters, because it is the most common source of numbers that disagree after a migration.
- 3
Import the files
In the BillDog dashboard, open Import → Analytics (the Analytics Migrator), choose S3 / JSONL Import, keep the schema on 'BillDog/PostHog schema', add your project's write key, and upload each file. Run a dry run on the first file to check the counts. Each event keeps PostHog's uuid as its de-duplication key, so uploading a file twice doesn't double-count in reports, but every upload is metered, so keep a list of what you've imported.
- 4
Or pull smaller windows directly
For a short window or just your flags, choose the PostHog instance source ('Self-hosted / Cloud → Cloud') instead: your PostHog host, a personal API key and the project ID, with optional before and after dates. It runs in your browser tab, so keep the tab open, and it waits and retries if PostHog rate-limits the key. It reads PostHog's events list endpoint, which PostHog now describes as kept for backwards compatibility, so use files for anything large. PostHog Cloud allows these browser requests; a self-hosted instance may block them unless it allows cross-origin calls.
- 5
Copy feature flags, then finish the targeted ones
Choose 'Feature flags only' in the direct pull, and run it as a dry run first. Each flag's key, description, on/off state, rollout percentage, variants and payloads come across. Flags that PostHog targets by person properties, cohorts or company are imported switched OFF with their rollout, and the import log lists them: set their targeting in BillDog, then turn them on.
- 6
Install the BillDog SDK alongside PostHog's
Send the same events to both for a full billing cycle. If BillDog will also run your paywalls, turn on the PostHog connector so purchases and renewals appear in PostHog while you compare.
- 7
Compare, rebuild, then cut over
Compare three or four metrics you make decisions on — a conversion funnel, a retention curve, weekly active users. Expect small differences from identity handling. Rebuild the insights and cohorts you rely on, then remove the PostHog SDK in a later release and keep the PostHog project read-only for a while.
What will bite you
Specific to PostHog. These are the ones that cost people a day.
Choose JSON Lines, not Parquet
PostHog recommends Parquet with zstd for batch exports. BillDog's importer reads JSON Lines, plain or gzip. In JSON Lines exports, properties arrive as nested JSON and timestamps as ISO 8601 strings, which is what the importer expects.
A re-run is not free
PostHog's event uuid is the de-duplication key, so a re-imported file collapses onto the same events in your reports. Ingest still meters every event it receives, so a re-run is billed.
Targeted flags arrive switched off
BillDog flags have one audience rule and one rollout; PostHog flags can have several release conditions, each with its own rollout. The importer copies flags it can represent exactly and switches the rest off rather than serve them to everyone. Check the import log for the list.
identified_only projects export fewer people
If your PostHog project uses person_profiles: 'identified_only', anonymous users who never logged in have no person profile. Their events still export with their distinct_id; there is simply no profile to match them to.
Realistic effort
An afternoon to export, dry-run and import a few months of events for a typical app, plus a few minutes to copy and re-target flags. Most of the time goes into rebuilding insights and the parallel-running period, which should be a full billing cycle.
Frequently asked questions
Can I import my PostHog event history into BillDog?
Yes. Export events from PostHog as JSON Lines through a batch export (plain or gzip), then upload the files in BillDog's S3 / JSONL importer with the PostHog schema. For small windows you can pull events directly with a personal API key instead. Each event keeps its name, distinct_id, timestamp and properties.
Do PostHog feature flags carry over?
Yes, with one limit. The direct pull copies each flag's key, description, on/off state, rollout percentage, variants and payloads. Release conditions based on person properties, cohorts or company don't translate automatically, so flags that use them are imported switched off for you to target and enable in BillDog.
Will user identities match after the move?
Events keep the distinct_id they were recorded with, but PostHog's person merges from identify calls are not rebuilt. If your analysis joins anonymous pre-login activity to logged-in users, expect some differences and decide how much they matter before you compare numbers.
Does it cost anything to export from PostHog?
PostHog bills batch exports per row exported after the first million rows; check its pricing page for the current rates. Imported events are also metered by BillDog as events received, so export the window you need rather than everything.
Can I keep PostHog and add BillDog instead?
Yes. Both SDKs run in the same app, and BillDog forwards subscription events with revenue to PostHog server-to-server. Teams that like PostHog's analytics often keep it and use BillDog for paywalls, purchases and messaging.
What does not migrate from PostHog?
Person profiles, cohorts, insights, dashboards, experiment history, session replays and survey responses. The events behind your insights do migrate, so the views can be rebuilt.
PostHog product details reflect public documentation as of 2026-11-19. All product names and brands are property of their respective owners. Import behaviour described here reflects the importers shipped in the BillDog dashboard.