KBAISE/ for lovable
Head to head

Stop guessing which one. Put them side by side.

Up to 4 tools, same rows for each: what it is, what it really costs, the trap, and how to wire it up. The URL carries your picks — send it to anyone.

PostHogGoogle Analytics 4Microsoft Clarity
Quick read
  • Free with no card: Google Analytics 4, Microsoft Clarity.
FieldPostHogposthog.comGoogle Analytics 4analytics.google.comMicrosoft Clarityclarity.microsoft.com
What it isAn all-in-one suite bundling product analytics, session replay, feature flags, A/B tests, surveys and error tracking behind one SDK. Each product carries its own monthly free allowance rather than sharing one pool. The MIT-licensed code can be self-hosted, but PostHog officially does not support self-hosted deployments.Google's event-based analytics platform, free for standard properties, with audiences, attribution modelling, Search Console linking and a daily BigQuery export capped at 1M events. Standard properties allow 50 event-scoped custom dimensions and 30 key events. Cloud-only, with no self-hosted equivalent.Microsoft's free behavioural analytics tool offering unlimited session recordings, click and scroll heatmaps, rage-click and dead-click detection, and AI summaries of sessions. There are no traffic caps and no paid upgrade path. Cloud-only, with an optional Google Analytics integration.
CategoryProduct analyticsProduct analyticsProduct analytics
Cost tiermixedfreefree
PricingFree: 1M events, 5K session replays, 100K exceptions/mo, 1-year retention. Then usage-based from $0.00005/event and $0.005/replay.Free for standard properties at essentially any volume. GA4 360 historically starts around $50,000/yr.Free forever with no traffic limits and no paid tier.
Why builders pick itOne npm install gives a solo builder analytics, flags, replay and error tracking at once, and the free allowances are large enough that most side projects never pay anything.It costs nothing at any traffic level and it is still what advertisers, SEO tools and clients expect to see, so it often ends up running alongside a nicer tool rather than instead of one.Unlimited free session replay is unmatched at any price. Watching ten real people fumble your onboarding teaches you more in an hour than a month of staring at funnel charts.
Watch out forIdentified events cost up to 4x more than anonymous ones. Set person_profiles: 'identified_only' or a 5M-event month jumps from roughly $153 to $610. Self-hosted instances get free-tier features only and zero support.Retention maxes at 14 months (default 2) and explorations sample above 10M events per query. EU traffic needs a consent banner plus Consent Mode v2, and several EU regulators have ruled plain GA deployments unlawful without extra safeguards.It sets the _clck and _clsk cookies, and since 31 October 2025 Clarity requires a valid consent signal for EEA, UK and Swiss visitors, so without a CMP those sessions will not record. Recordings can capture PII unless you mask fields.
How to wire it upnpm i posthog-jsnpm i @next/third-partiesnpm i @microsoft/clarity
Editor's pickNoNoNo
Which one did you ship?

The grid says what these tools are. This says what builders did about it — one decision per person, changeable whenever you change your mind.

0/280Sign in to add yours.
Or try
Hand this to your Lovable agent
# Tool comparison — PostHog vs Google Analytics 4 vs Microsoft Clarity

Source: Kbaise, a directory of tools that work with Lovable projects.
Pick one and tell me why before writing any integration code.

## PostHog (posthog)
- URL: https://posthog.com
- Category: Product analytics
- Cost: mixed — Free: 1M events, 5K session replays, 100K exceptions/mo, 1-year retention. Then usage-based from $0.00005/event and $0.005/replay.
- What it is: An all-in-one suite bundling product analytics, session replay, feature flags, A/B tests, surveys and error tracking behind one SDK. Each product carries its own monthly free allowance rather than sharing one pool. The MIT-licensed code can be self-hosted, but PostHog officially does not support self-hosted deployments.
- Why builders pick it: One npm install gives a solo builder analytics, flags, replay and error tracking at once, and the free allowances are large enough that most side projects never pay anything.
- Trap: Identified events cost up to 4x more than anonymous ones. Set person_profiles: 'identified_only' or a 5M-event month jumps from roughly $153 to $610. Self-hosted instances get free-tier features only and zero support.
- Wiring: npm i posthog-js
- Full dossier: /api/public/tools/posthog

## Google Analytics 4 (google-analytics-4)
- URL: https://analytics.google.com
- Category: Product analytics
- Cost: free — Free for standard properties at essentially any volume. GA4 360 historically starts around $50,000/yr.
- What it is: Google's event-based analytics platform, free for standard properties, with audiences, attribution modelling, Search Console linking and a daily BigQuery export capped at 1M events. Standard properties allow 50 event-scoped custom dimensions and 30 key events. Cloud-only, with no self-hosted equivalent.
- Why builders pick it: It costs nothing at any traffic level and it is still what advertisers, SEO tools and clients expect to see, so it often ends up running alongside a nicer tool rather than instead of one.
- Trap: Retention maxes at 14 months (default 2) and explorations sample above 10M events per query. EU traffic needs a consent banner plus Consent Mode v2, and several EU regulators have ruled plain GA deployments unlawful without extra safeguards.
- Wiring: npm i @next/third-parties
- Full dossier: /api/public/tools/google-analytics-4

## Microsoft Clarity (microsoft-clarity)
- URL: https://clarity.microsoft.com
- Category: Product analytics
- Cost: free — Free forever with no traffic limits and no paid tier.
- What it is: Microsoft's free behavioural analytics tool offering unlimited session recordings, click and scroll heatmaps, rage-click and dead-click detection, and AI summaries of sessions. There are no traffic caps and no paid upgrade path. Cloud-only, with an optional Google Analytics integration.
- Why builders pick it: Unlimited free session replay is unmatched at any price. Watching ten real people fumble your onboarding teaches you more in an hour than a month of staring at funnel charts.
- Trap: It sets the _clck and _clsk cookies, and since 31 October 2025 Clarity requires a valid consent signal for EEA, UK and Swiss visitors, so without a CMP those sessions will not record. Recordings can capture PII unless you mask fields.
- Wiring: npm i @microsoft/clarity
- Full dossier: /api/public/tools/microsoft-clarity

## Quick read

- Free with no card: Google Analytics 4, Microsoft Clarity.

## Rules
1. Prefer the free tier when no budget was stated, and say what the ceiling is.
2. Read the full dossier before integrating.
3. Fetch /api/public/models before writing any AI model ID.

Agents can fetch the same thing: GET /api/public/compare?slugs=posthog,google-analytics-4,microsoft-clarity