Compare
Dataflare vs PostHog
PostHog is an all-in-one product platform: analytics, replay, flags, experiments, surveys and more. Dataflare is open-source analytics that runs in your own Cloudflare account.
The short answer
PostHog is the closest product to Dataflare and does far more: surveys, a data warehouse, error tracking, mobile SDKs and a hosted cloud with a team behind it. Choose Dataflare if you want the core of that (web and product analytics, replay, flags and experiments) running in your own Cloudflare account, with no vendor, no usage-based bill and an agent that can query it from the first minute.
Side by side
| Feature | Dataflare | PostHog |
|---|---|---|
| Where your data lives | Your own Cloudflare account (D1 and R2) | PostHog Cloud (US or EU), or your own servers |
| Source code | Open source, MIT | Open source (MIT, with some paid features under a separate licence) |
| What you pay | Your Cloudflare bill: $0 on Workers Free for small sites, $5/month Workers Paid above that | Free monthly allowance, then usage-based per product |
| Cookieless mode | Yes | Yes (configurable persistence) |
| Web analytics | Yes, with Core Web Vitals and errors | Yes |
| Funnels and retention | Yes: trends, funnels, retention, cohorts | Yes, extensive |
| Session replay | Yes, with a text transcript for agents | Yes, web and mobile |
| Feature flags and A/B tests | Yes: flags in your Worker, Bayesian experiment results | Yes |
| Raw SQL on your events | Yes, read-only SQL in the dashboard, CLI and MCP | Yes (HogQL / SQL insights) |
Checked November 2026. Sources: PostHog pricing, PostHog self-hosting, PostHog licence. Spotted something out of date? Open an issue.
Choose PostHog if you want
- Many more products in one place: surveys, a data warehouse, error tracking, LLM analytics, a CDP.
- Mobile SDKs (iOS, Android, React Native, Flutter) and many server SDKs.
- A hosted cloud with support, SSO and team permissions.
- Years of production use at very large scale.
Choose Dataflare if you want
- There is no Dataflare server: the Worker, database and recordings are in your Cloudflare account, under your contracts and your data region.
- No usage-based bill from a vendor. You pay Cloudflare's list prices, which for most sites means $0 or the $5 Workers Paid plan.
- Self-hosting needs no servers, Docker or ClickHouse cluster. One command deploys it, and CI upgrades it.
dataflare initwrites agent instructions, a Claude Code skill and an MCP config, and every query result carries its SQL and a dashboard link.
Moving from PostHog to Dataflare
- Run
npx dataflare-cli initand add the script tag next to PostHog for a week, so you can compare numbers. - Rename
posthog.capture(...)calls toglass.capture(...); event names and properties carry over unchanged.posthog.identify(id, props)becomesglass.identify(id, props). - Recreate your key funnels and retention charts in Insights, or ask your agent to (the MCP tools take the same shapes).
- Move flags:
posthog.getFeatureFlag(key)becomesglass.flag(key). Create the flag with the same key in Dataflare first.