Analytics

Product analytics + session replays + feature flags + A/B tests — open source.

PostHog is an all-in-one product analytics platform that covers event tracking, session recordings, feature flags, and A/B testing. The free tier is generous (1M events, 5k session recordings) and the OSS option means you can self-host if data residency matters.

What you get

Automatic event capture with `posthog-js` client
Session recordings to watch real user flows
Feature flags + A/B testing with statistical significance built-in
Funnels, retention, and cohort analysis
Self-host option for full data control

FAQ

Should I use PostHog or Plausible?

Plausible is simpler — page views and referrers, nothing more. PostHog covers product analytics: which buttons users click, what funnels they drop out of, replay sessions. Use Plausible for marketing-site analytics; PostHog when you have a real product with usage to understand.

How do I add PostHog to an exported InBuild site?

Install `posthog-js`, wrap your root layout with a client-side PostHog provider, and set `NEXT_PUBLIC_POSTHOG_KEY` and `NEXT_PUBLIC_POSTHOG_HOST` in your env. Our exported `.env.local.example` already includes placeholders for these variables.

Does PostHog impact page speed?

Marginal impact when loaded via the deferred snippet. If Core Web Vitals matter, use PostHog's reverse-proxy setup so the script loads from your domain — faster and avoids ad blockers.

Other integrations