Venture Studio · Guided Apprenticeships · Agentic Marketing Agency

The Log · Reference · 5 min read

Reference · Tech Stacks

PostHog: The Free Google Analytics Alternative You Can Talk to With AI

Most people reflexively paste in Google Analytics and move on. There's a better free option, and the kicker is you can literally talk to it with your AI.

The whole thing in one breath

Don't default to Google Analytics. PostHog has a generous free tier, bundles analytics, session replay, feature flags, experiments, and surveys into one tool, is open-source and self-hostable, and ships an MCP server so your AI assistant can read your numbers and tell you what to change. This site runs on it.

When you build a website, there's a reflex: drop in the Google Analytics snippet, never look at it again. I did it for years. The problem isn't that GA4 is expensive. It's free. The problem is that it's the wrong tool for someone building a business with AI in 2026. It only does one thing, it's confusing, it's a privacy liability, and your AI can't talk to it.

So when people ask me for a Google Analytics alternative, I give the same answer every time: PostHog. Here's the short version of why.

⚑ Hot take: GA4 is unpaid work you do for Google

You install Google Analytics on reflex, and from then on it feeds Google data about your visitors, hands you a privacy liability you now have to disclose, and gives you a dashboard so confusing you need a course to read it. You're doing free labor for the biggest ad company on earth. Run something you own instead.

Why PostHog is the Google Analytics alternative I reach for

Three reasons, then the one that actually matters.

  • The free tier is generous. PostHog is usage-based with a free monthly allowance that resets on the 1st. On the order of a million events a month, plus thousands of free session replays, a million feature-flag requests, and over a thousand survey responses. No credit card. Most small sites and early startups never pay a cent.
  • It's all-in-one. Analytics, web analytics, session replay, feature flags, A/B experiments, surveys, and error tracking live in one product. You stop stitching five tools together (one Google Analytics, one Hotjar, one LaunchDarkly, one Typeform) and have a single source of truth.
  • It's open-source and self-hostable. The core is MIT-licensed. You can run it on your own infrastructure if you want, and you're never locked into a black box. It's also more privacy-friendly than GA4 by default.
Explain like I'm 5 What's session replay?
It's a video-like recording of a real visit to your site. Where someone moved their mouse, what they clicked, where they got stuck and left. Instead of guessing why people aren't signing up, you watch a few sessions and see it. PostHog includes thousands of these free every month.

Those three are nice. But none of them are the reason I'm writing a whole post. The reason is the fourth thing.

The real differentiator: you can plug it into your AI

PostHog ships an official MCP server, a hosted endpoint that lets an AI agent connect straight to your PostHog project. That means the same AI you build your site with (Claude, in my case) can read your analytics, run queries against it in plain English, and tell you what's working.

Explain like I'm 10 What's an MCP server?
MCP (Model Context Protocol) is a standard way to give an AI assistant a tool it can use. A "PostHog MCP server" is basically a connector. Once it's wired up, your AI can fetch your real analytics, run a query, or even flip a feature flag, instead of you exporting a CSV and pasting it in. It's the difference between an AI that talks about analytics and one that talks to yours.

This closes a loop that used to be broken. You build with AI, you ship with AI, and now you can read your own numbers with the same AI. No dashboard archaeology, no exporting spreadsheets. You just ask.

⌘ Paste this to your AI once PostHog's MCP is connected

Look at my PostHog data for the last 30 days. Tell me which pages convert best, which ones leak the most visitors, and the three highest-leverage changes I should make. Use real numbers from my project, and watch a couple of session replays of people who bounced if that helps explain why.

That's not a hypothetical. That is how I actually look at this very site. max-ship.com runs on PostHog, and I review it by asking Claude rather than clicking around a dashboard.

PostHog vs Google Analytics 4, side by side

The honest comparison. GA4 is free and everywhere. PostHog is free and does far more, with the AI hook GA4 doesn't have.

  PostHog Google Analytics 4
Price Free tier, generous monthly allowance, usage-based after Free (GA4 standard)
All-in-one (replay, flags, experiments, surveys) Yes, one tool No, analytics only
Open-source / self-host Yes (MIT core) No
Privacy-friendly Friendlier by default A common liability
AI / MCP queryable Yes, official MCP server No native MCP

Both are free, so this isn't a money decision. It's a leverage decision. GA4 gives you a confusing dashboard you'll avoid. PostHog gives you one tool that covers analytics, replays, flags, experiments, and surveys, plus an AI that reads it for you.

◆ The 2026 reason this matters

If you're building your business with AI, your analytics should be readable by AI. That's the whole game. PostHog is the only mainstream analytics tool where the same assistant you build with can close the loop and tell you what to change. That's why it's part of the stack I'd hand a non-technical founder.

Where it fits in the stack

PostHog is the measurement layer of the same lean, AI-friendly stack I use everywhere: Astro for the site, Cloudflare to host it for about $0, and PostHog to see what's happening and ask your AI what to do about it. Three tools, mostly free, all of them things an AI can read and act on.

Setup is a snippet on your site and a few minutes connecting the MCP server. After that, you don't open a dashboard unless you want to. You just ask. If you want a hand getting the MCP wired up, reach out. I'm always happy to help.

References

  1. PostHog Pricing, transparent, usage-based, generous free tier · posthog.com · 2026
  2. PostHog, open-source product analytics, replay, flags, experiments, surveys · github.com/PostHog · 2026
  3. Model Context Protocol (MCP), PostHog Docs · posthog.com · 2026
  4. How to Build and Publish a Website With AI · MaxShip · 2026
  5. Why I Build on Cloudflare, Not Vercel · MaxShip · 2026