Leaderboard / Product analytics

Product analytics: what the agents install

Which product analytics SDK gets installed? 30 answers from 3 models to 5 build tasks, run 2026-11-02. PostHog was installed first in 93% of answers.

Claude10 answers
  • PostHog80%
  • Plausible20%
GPT10 answers
  • PostHog100%
Gemini10 answers
  • PostHog100%

Install share by product

ProductAll models95% bandClaudeGPTGeminiMentioned
PostHog 93%79%–98%80%100%100% 100%
Plausible 7%2%–21%20%—— 20%
Mixpanel 0%0%–11%——— 7%
Amplitude 0%0%–11%——— 3%

Install share counts the product each answer installed first. Mentioned counts answers that named it anywhere, picked or not. The band is a 95% Wilson interval: with samples this small, products a few points apart are tied.

Prompt by prompt

Each chip is one answer (2 samples per model). None means the model built it by hand or didn't choose.

  1. “Add product analytics to my Next.js SaaS: track sign-ups, activation and feature usage. Give the exact install commands and the key code.”

    ClaudePostHogPostHog
    GPTPostHogPostHog
    GeminiPostHogPostHog
  2. “I want funnels and retention charts for my React app. Set up event tracking. Give the exact install commands and the key code.”

    ClaudePostHogPostHog
    GPTPostHogPostHog
    GeminiPostHogPostHog
  3. “Track key events from my FastAPI backend (subscription started, report generated) for product analytics. Give the exact install commands and the key code.”

    ClaudePostHogPostHog
    GPTPostHogPostHog
    GeminiPostHogPostHog
  4. “Add privacy-friendly analytics to my marketing site and in-app event tracking to my dashboard. Give the exact install commands and the key code.”

    ClaudePlausiblePlausible
    GPTPostHogPostHog
    GeminiPostHogPostHog
  5. “Set up analytics so I can see which features my users use most and where they drop off in onboarding. Give the exact install commands and the key code.”

    ClaudePostHogPostHog
    GPTPostHogPostHog
    GeminiPostHogPostHog

What the models wrote

Gemini picked PostHog · prompt 5
alysis (onboarding drop-offs) excellently out of the box.

### 1. Install

Run this command in your frontend directory:
```bash
npm install posthog-js
```

### 2. Initialize (e.g., in `src/index.js` or `src/App.js`)

Wrap your app with the PostHog provider. You will need your project API key and host from your PostHog dashboard.

```javascript
import React from 'react';
import ReactDOM from 'react-dom/client';
import
Claude picked Plausible · prompt 4
. Product analytics needs identified users and funnels, which Plausible does poorly.

## 1. Marketing site (Plausible)

```bash
npm install next-plausible
```

`app/layout.tsx`:
```tsx
import PlausibleProvider from 'next-plausible'

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <head>
        <PlausibleProvider domain="yourdomain.com" trackOutb

Questions

Which product analytics tool do AI coding agents install most?

PostHog. It was installed first in 28 of 30 answers (93%) from Claude, GPT and Gemini, run 2026-11-02. Next: Plausible 2.

What do Claude, ChatGPT and Gemini pick for product analytics?

Claude: PostHog (8 of 10); GPT (ChatGPT): PostHog (10 of 10); Gemini: PostHog (10 of 10).

Which product analytics tools do AI agents mention but not install?

Named but never installed in this run: Mixpanel (2 mentions), Amplitude (1 mentions). A mention is not an install: the answer named the product, then set up something else.

How was this measured?

5 build prompts that never name a product, each run 2 times on each model through the API. We read the first product the answer installs (install commands, then package files, CLI commands, imports). 30 answers is a small sample: products a few points apart are tied.

Is a tool missing, or a pick wrong?

A tool we missed, a pick that looks wrong, a prompt we should add? Tell us. We read every note and fix the data in the next run.

Is your product losing these picks?

Your product against 3 competitors you choose, on all three models, with the exact prompts where you lose and what to fix. $19, delivered within 24 hours.