The best analytics tool for single page apps in 2026 is PostHog, free for 1 million events a month. Mixpanel is best for funnels and retention, Amplitude is best for behavioural cohorts, and Google Analytics 4 is the best free web analytics option.

Key takeaways

  • PostHog: best overall; free 1M events a month, plus replay, flags and surveys in one SDK.
  • Mixpanel: best for funnels; Growth starts at $0 with 1M events free, then $100 a month billed annually at 1.5M events.
  • Amplitude: best for cohorts; Starter free for 10,000 monthly tracked users; Plus from $49 a month.
  • Google Analytics 4: best free web analytics; standard GA4 costs $0 with no paid tier below 360.
  • Prices were checked on vendor pricing pages on 23 Nov 2026.

Quick comparison

ToolBest forStarting priceFree plan
PostHogAll-in-one free analytics$0 pay-as-you-goYes (1M events)
MixpanelFunnels and retention$0 (Growth)Yes (1M events)
AmplitudeBehavioural cohorts$49 per monthYes (10,000 users)
Google Analytics 4Free web analytics$0Yes (no cap)
HeapAutocaptureCustom pricingYes (10,000 sessions)
LogRocketReplay plus error tracking$83 per monthYes (1,000 sessions)
PlausiblePrivacy-friendly analytics$9 per monthNo (30-day trial)

1. PostHog: best all-in-one free analytics

PostHog bundles product analytics, session replay, feature flags, surveys and error tracking under one SDK. The free plan covers 1 million events, 5,000 replays and 1 million flag requests a month. It is open source, so teams can self-host if they prefer.

  • Starting price: $0 pay-as-you-go; first 1M events a month free, then $0.00005 per anonymous event.
  • Free plan: Yes; 1M events, 5,000 session recordings, 1M flag requests a month.
  • Standout feature: One SDK for analytics, replay, flags, surveys and error tracking.
  • Limits to know: Identified events cost more, $0.000198 each above the free million, and the SDK records a page-leave event that doubles event counts by default.

2. Mixpanel: best for funnels and retention

Mixpanel tracks events from SPAs and turns them into funnels, retention curves and flow reports without SQL. The Growth plan includes the first 1 million events free each month. Session replay and an AI query builder come with every plan.

  • Starting price: $0 (Growth); $100 per month billed annually at 1.5M events, $140 billed monthly.
  • Free plan: Yes; 1M events a month, 10,000 session replays.
  • Standout feature: Funnels, retention and flows built for event data from SPAs.
  • Limits to know: No billing cap, so a traffic spike bills automatically; group analytics and pipelines are paid add-ons.

3. Amplitude: best for behavioural cohorts

Amplitude groups users into behavioural cohorts and tracks how each cohort moves through an SPA. The free Starter plan covers 10,000 monthly tracked users and 2 million events. Unlimited seats come with every plan.

  • Starting price: $49 per month (Plus, billed annually); Starter free.
  • Free plan: Yes; 10,000 monthly tracked users, 2M events a month, 1,000 session replays.
  • Standout feature: Behavioural cohorts and user journeys without per-seat pricing.
  • Limits to know: Growth and Enterprise are quote-only, and the bill climbs fast with monthly tracked users.

4. Google Analytics 4: best free web analytics

Google Analytics 4 is the free default for measuring traffic, sources, pages and conversions on a single page app. It links to Google Ads, Search Console and BigQuery at no cost. The paid Analytics 360 version is a separate enterprise contract.

  • Starting price: $0 (standard GA4); Analytics 360 is custom, reported from about $50,000 a year.
  • Free plan: Yes; standard GA4 is free with no event cap in the terms.
  • Standout feature: Free at any volume, with Ads, Search Console and BigQuery links built in.
  • Limits to know: Exploration data is kept 2 or 14 months, and reports sample above 10 million events per query.

5. Heap: best for autocapture

Heap records every click and page view automatically, so teams can define events after the fact instead of planning them up front. The free plan covers 10,000 sessions a month with 6 months of history. It suits SPAs where tracking plans change often.

  • Starting price: Custom pricing (Growth, Pro and Premier); free plan $0.
  • Free plan: Yes; up to 10,000 sessions a month, 6 months of data history.
  • Standout feature: Autocapture that lets teams analyse behaviour retroactively.
  • Limits to know: Paid prices are not published, and session replay is an add-on on Pro and Premier only.

6. LogRocket: best for replay plus error tracking

LogRocket pairs session replay with JavaScript errors, network requests and performance timings from the same visit. When a user reports a bug in an SPA, the team opens the replay and sees the error. Analytics, logs and errors are unlimited on every plan.

  • Starting price: $83 per month (Core, 10,000 sessions, billed annually).
  • Free plan: Yes; 1,000 sessions a month, free forever.
  • Standout feature: Replays linked to errors, logs and network calls from the same session.
  • Limits to know: The price scales with sessions captured, not seats, so a traffic spike raises the bill.

7. Plausible: best privacy-friendly analytics

Plausible is a lightweight, cookieless analytics tool hosted in the EU. The script is tiny, so it barely slows a single page app. Funnels and revenue goals sit on the Business plan.

  • Starting price: $9 per month (Starter, 10,000 pageviews); $19 at 100,000 pageviews.
  • Free plan: No; 30-day trial, and the self-hosted Community Edition is free.
  • Standout feature: Cookieless, privacy-friendly analytics with a tiny script.
  • Limits to know: No free cloud plan, and funnels and user journeys need the Business plan.

How we chose

We compared published pricing, free-plan limits and SPA support across 7 tools. Every price comes from a vendor pricing page or a November 2026 guide that read one. We favoured tools with a generous free tier and event-based tracking.

How to choose

  1. Pick PostHog if you want analytics, replay and flags in one free plan.
  2. Pick Mixpanel or Amplitude if funnels and cohorts matter more than replay.
  3. Pick Google Analytics 4 if you only need traffic and conversion reports for free.
  4. Pick LogRocket if debugging user-reported bugs is the priority.

For a wider comparison, see Best Google Analytics Alternatives.

FAQ

What is the best analytics tool for a single page app?

PostHog for most teams, because its free plan covers analytics, replay and flags. Mixpanel is better for deep funnel analysis.

What is the best free analytics tool for SPAs?

Google Analytics 4 for traffic reports, and PostHog for product analytics, since both cost $0 at small volumes.

How much does product analytics cost?

Most tools start free up to 1 million events a month; paid plans start at $49 a month for Amplitude Plus and $83 for LogRocket Core.

Does PostHog work with single page apps?

Yes. Its JavaScript SDK tracks page views, clicks and custom events in SPAs, and autocapture records interactions without manual tagging.

Is Heap free?

Yes, up to 10,000 sessions a month. Paid plans are custom priced by session volume.

Sources