REPLACEMENT BRIEF

analytics

Can AI replace PostHog?

EDITORIAL ANSWERNOT REALLYCurated prompt

PostHog is open source, and a small event pipeline with funnels is buildable. The cloud product bundles analytics, session replay, feature flags, experiments, and a warehouse, all operated at scale.

Collect first-party pageviews and custom events from your own sites, keep the raw rows yourself, and answer a handful of product questions from a local dashboard.

See the closest workaround →

AT A GLANCE

price
varies
replaceable scope
single-product first-party analytics
build time
closest consolation build: one sitting
closest workaround promptsecondary workaround · reviewed prompt · not run

the prompt

Curated prompt
Build me a self-hosted web analytics box to replace PostHog. Requirements:

- One Node 22 + Express process with better-sqlite3, serving the collector and the
  dashboard on port 8787. No frontend framework, no build step, no Docker.
- A tracker.js I paste on my sites: pageviews on load and history change, plus
  window.track('signup', { plan: 'pro' }), POSTed to /e on my own domain so
  collection stays first-party.
- One SQLite events table: site, event, path, referrer, UTM fields, country from the
  proxy header, device class, and a JSON properties blob.
- Count visitors by a daily-rotating salted hash of IP plus user agent, salt in .env.
  No cookie, never the raw IP. That is the whole privacy design, keep it.
- Dashboard at / with a date range picker: visitors and pageviews by day, top pages,
  referrers, countries, any event split by one property, and a three-step funnel.
- Nightly rollup into a daily-summary table, raw events pruned past the retention
  window in .env, /export.csv for the raw rows.
- Basic auth on the dashboard, collector open. No accounts, no telemetry, my box
  holds the only copy.
- Out of scope: session replay, feature flags, and stitching one person across
  devices. Do not build a plugin system or a warehouse connector.
- README: the snippet to paste, where the SQLite file lives, and how to back it up.
Copy or open in an agent

The prompt stays readable first. Choose a launch option when you are ready.

$ open in your agent (prompt prefilled, you press enter) or copy it raw

what AI can build

Collect first-party pageviews and custom events from your own sites, keep the raw rows yourself, and answer a handful of product questions from a local dashboard.

The prompt was editor-reviewed; no completed build is recorded.

The honest tradeoff

who should keep paying

Teams pay to get several product tools in one place without running ClickHouse and replay storage themselves. Generous free tiers mean most small projects pay nothing at all.

what you lose

session replay

feature flags and experiments

identity stitching across devices

SQL over years of events

ingestion that stays up without you watching it

Start with existing software

prior art · use these instead of building, if you'd rather

EVIDENCE LEDGER

What this page can prove

The verdict judges replaceability. The evidence level records what DeepFeather actually checked.

Read the methodology →
evidence level
Curated prompt

The prompt was editor-reviewed; no completed build is recorded.

replacement boundarysingle-product first-party analytics

known limits · session replay; feature flags and experiments

editorial reviewawaiting manual review

BUILD FEEDBACK

Did you try this build?

Report the outcome. Submissions enter a manual evidence queue and never auto-upgrade the verdict.

questions

Can AI replace PostHog?

Not really. PostHog's value is not just interface code — infrastructure scale · switching costs — Product analytics with session replay, feature. See the honest breakdown above.

How much does PostHog cost?

PostHog's pricing is usage-based or varies by plan. Use the linked pricing source for the current amount; the catalog last checked it on 2026-07-31.

What do I lose by replacing PostHog?

Honestly: session replay; feature flags and experiments; identity stitching across devices; SQL over years of events; ingestion that stays up without you watching it. If any of those are load-bearing for you, keep paying.

Is there an open-source alternative to PostHog?

Yes — Umami (Popular open-source privacy-focused web analytics platform.). Using prior art is also a valid exit; the prompt is for when you want it exactly your way.