PostHog

Open-source analytics, session replay, feature flags — all in one

Analytics 4.5 / 5 (1 Rating) Free up to 1M events/mo Open Source Updated Feb 2026

Quick Verdict

PostHog is the best all-in-one analytics platform for early-stage Indian startups — generous free tier (1M events/month), open-source so you can self-host for full data sovereignty, and it bundles analytics, session replay, feature flags, and A/B testing that would cost ₹50,000+/month across separate tools. If you're pre-Series A or privacy-conscious, PostHog should be your default starting point before considering Mixpanel or Amplitude.

Free Tier Value
4.9
Feature Breadth
4.4
Analytics Depth
3.9
Dev Experience
4.6
Data Privacy
4.8

What is PostHog?

PostHog is an open-source product analytics platform founded in 2020. Unlike Mixpanel or Amplitude which are pure SaaS, PostHog can be self-hosted on your own infrastructure — meaning your user data never leaves your servers. This is a significant advantage for Indian fintech, healthtech, and insurtech companies with data localisation requirements.

What makes PostHog remarkable is the breadth of what's included in one platform: product analytics (funnels, retention, cohorts), session recording, heatmaps, feature flags, A/B experiments, and a data warehouse connector. Competing tools charge separately for each — Mixpanel + Hotjar + LaunchDarkly would cost ₹60,000–2,00,000/month at Series A scale. PostHog's free tier covers all of this up to 1 million events per month.

The tradeoff: PostHog's analytics depth (especially retention and cohort analysis) is still slightly behind Mixpanel for very complex queries. But for 90% of what early-stage Indian product teams need, it's more than sufficient.

Key Features

Product Analytics

Funnels, retention curves, user paths, cohort analysis, and custom dashboards. Covers the core analytics needs of most Indian product teams without paying anything until you scale past 1M events/month.

Session Recording

Watch real user sessions with console logs and network activity. Filter recordings by user property, event, or funnel step. Essential for debugging drop-offs that analytics numbers can't explain.

Feature Flags

Roll out features to specific user segments or percentages. Instant kill switch if something breaks. Free, unlimited flags. For Indian teams without a separate LaunchDarkly subscription, this alone justifies PostHog.

A/B Experiments

Run experiments connected directly to your analytics data — no data export needed to see results. Statistical significance calculated automatically. Up to 5 experiments free on the cloud plan.

PostHog vs Mixpanel — Which to Choose

FactorPostHogMixpanel
Free tier1M events/mo free forever20M events/mo (but no session replay)
Session recordingIncluded freeNot available (need Hotjar/Clarity)
Feature flagsIncluded freeNot available
A/B testingIncluded (5 free)Not available
Analytics depthGoodBest-in-class funnels
Self-hosting optionYes — full data controlNo
Data localisationComplete (self-hosted)No
Indian team adoptionGrowing fastVery high (established)

Best For

  • Pre-Series A Indian startups that need full analytics without the Mixpanel cost
  • Fintech and healthtech teams with RBI/IRDAI data localisation requirements
  • Developer-led teams comfortable self-hosting on AWS/GCP/DigitalOcean
  • Teams currently paying for Mixpanel + Hotjar + LaunchDarkly separately
  • Open-source friendly product cultures (B2B developer tools, APIs, SaaS infra)

Pricing

PostHog Cloud is generous by design — the founders explicitly want it to be free for early-stage teams. Pricing kicks in at scale.

Free (Cloud)

₹0

1M events/month, 5K session recordings, unlimited feature flags, 5 A/B experiments. Resets monthly. No credit card needed. This is genuinely sufficient for Indian startups up to ~50K MAU.

Self-Hosted

Free (OSS)

Deploy on your own servers. No event limits, no data leaving India. Engineering cost to maintain (~4–8 hrs/month for a dedicated DevOps person). Best for data-sensitive Indian fintechs.

💡 GST note: PostHog Cloud is US-based SaaS — 18% GST applies under reverse charge on paid plans. Self-hosted has no recurring cost beyond your own infrastructure (typically ₹3,000–8,000/month on a single DigitalOcean droplet for smaller teams).

Pros and Cons

Pros

  • 1M events/month free — genuinely usable free tier
  • Session replay + feature flags + A/B tests all included
  • Self-hostable for complete data localisation
  • Open source — community support, no vendor lock-in
  • Excellent developer documentation and SDKs
  • Moves fast — major feature releases every few weeks

Cons

  • Analytics depth slightly behind Mixpanel for complex cohorts
  • Self-hosting requires DevOps bandwidth to maintain
  • UI can feel dense — steeper learning curve than Mixpanel
  • Smaller Indian community vs Mixpanel (fewer local resources)
  • Mobile SDK quality improving but not yet Mixpanel-level

Getting Started with PostHog

  1. Start with PostHog Cloud, not self-hosted — Even if you plan to self-host later, begin with PostHog Cloud. You'll be live in 30 minutes and can spend the first few weeks defining your event taxonomy before investing engineering time in infrastructure.
  2. Install the SDK and autocapture events — PostHog's autocapture feature tracks clicks, form submissions, and pageviews automatically with zero code. Enable it immediately for web products. For mobile and backend events, install the Android/iOS SDK or Python/Node library and send custom events for your core actions.
  3. Define 10 core events before you need them — Map your key product moments: signup_completed, onboarding_step_1, first_value_action, feature_used, payment_initiated. Implement these in your first week. Retrofitting event schemas months later is painful.
  4. Use feature flags from day one — Replace any hardcoded if (process.env.FEATURE_X) flags in your codebase with PostHog feature flags. This gives you instant kill switches and the ability to do percentage rollouts without a code deploy.
  5. Set up your first session recording filter — Filter recordings to "users who reached checkout but didn't complete payment." Watch 10 of these sessions. You will almost certainly find a UX issue you didn't know existed. This is the fastest way to get immediate value from PostHog.
Try PostHog Free

The Daily Brief — a daily update across 12 industries

One actionable growth breakdown every morning, across 12 industries — with an audio version in 21 languages. No fluff, just hard product teardowns and India benchmarks.

or

PostHog Analytics & Feature Flag Playbook

TL;DR: PostHog provides early-stage startups with an all-in-one product analytics suite. By combining event tracking, session recordings, heatmaps, feature flags, and survey feedback into a single SDK, startups can diagnose conversion bottlenecks in real-time without managing multiple vendors or high billing contracts.

1. All-in-One Analytics Orchestration for Early-Stage Startups

Startups often struggle with tool fatigue, managing separate vendors for event analytics, session recordings, feature flags, and database logs. PostHog resolves this by consolidating these features into a single JavaScript SDK. This unified dashboard allows startups to track user events, review heatmaps, and roll out feature updates under one platform. By capturing actions automatically (autocapture), PostHog reduces the engineering setup time from weeks to hours, allowing squads to launch and test landing page variants quickly, in line with the product metrics dashboard setup.

Additionally, PostHog offers a generous free tier of 1 million events per month, making it highly cost-effective for bootstrap startups. The platform can be deployed via their managed cloud service or self-hosted in your cloud infrastructure, giving you complete control over your user data privacy.

2. Session Replay Diagnostics and Funnel Auditing

Quantitative charts show where users drop off, but session recordings reveal why. PostHog’s session replay tool records mouse clicks, page scrolls, and form inputs. When auditing a checkout flow, PMs can search for replays that contain 'rage clicks' (where a user clicks a button repeatedly) or console errors. For example, if users are dropping off at a credit card payment screen, watching the recording might show that the input fields are freezing on mobile devices, or that a bank redirect is failing, which helps teams maintain high payment success rates.

Session replays can be linked directly to your funnel charts. Clicking on a specific drop-off step opens a playlist of users who dropped out at that exact point. This visual context reduces troubleshooting times for engineering squads, helping them deploy patches before conversion drops affect MRR.

3. Feature Flags, A/B Testing, and Progressive Rollouts

Deploying new features without testing can lead to system-wide crashes. PostHog's feature flags allow startups to roll out updates progressively. You can enable a new checkout page for 10% of your user base, monitor the error logs, and scale the rollout to 100% only when the code proves stable. This reduces deployment risks and keeps your development loops aligned with the guidelines in the api documentation best practices.

A/B testing is built directly into feature flags. Startups can run multivariate tests comparing different call-to-actions, pricing layouts, or onboarding steps. PostHog automatically calculates the statistical significance of the conversion difference, helping product managers select the winning variant, as discussed in the activation rate vs conversion rate funnel.

4. Data Privacy, Compliance, and Self-Hosting Architecture

With regulations like the DPDP Act of November 2025 changing data sovereignty rules, where you host user analytics is critical. PostHog's self-hosted deployment model allows companies to run the analytics engine within their local cloud environment (such as AWS or Google Cloud). This ensures that user data never leaves your servers, complying with local guidelines and securing customer trust, as covered in the GDPR for Indian startups guide.

Finally, configure PostHog's database storage pipelines to automatically mask sensitive PII (like credit card numbers and passwords) during session recordings. Maintaining these compliance controls protects your company from data leak audits while providing your product team with valuable usage insights.

5. Designing Multi-Variant A/B Tests with Feature Flag Rules

Scaling experiments requires complex routing controls to prevent user confusion. Inside PostHog, feature flags can be used to run A/B tests with custom targeting rules. For instance, you can target users in India who registered in Q1 2026, while excluding enterprise accounts from seeing the experiment. Enforcing these targeting rules protects sensitive accounts from seeing pre-release layouts, ensuring a safe deployment pipeline.

Additionally, configure exclusion rules to prevent users from participating in multiple overlapping tests simultaneously. If a user is seeing a pricing experiment, they should not see an onboarding experiment. This isolation ensures that your test results remain clean and statistically valid, helping you select the winning layout and optimize conversion rates, in line with the activation rate vs conversion rate framework.

Quick Info

Try Free