Can I vibe code Plausible?
Privacy-first web analytics in one lightweight script.
Privacy-first analytics is almost a rite-of-passage vibe build: a tiny tracking script, an ingest endpoint, and a dashboard of pageviews, referrers, and top pages — no cookies, no fingerprinting, nothing to consent-banner. Plausible themselves are open source, so you can also just self-host the real thing. Either path ends the subscription; the DIY path additionally teaches you exactly what analytics can and can't know about visitors.
Build me privacy-first web analytics. A tiny script (<1KB, no cookies) that sends pageview events (path, referrer, screen class, country from edge headers) to an ingest API route, deduped per visit via a daily-rotating hash — no persistent identifiers. Store events in Postgres with an aggregation strategy that stays fast at millions of rows (daily rollup table). Dashboard: unique visitors, pageviews, top pages, referrers, countries, device split, with 7/30/90-day ranges and a live-visitors ticker. Filter out obvious bots by user agent. Next.js, deployable to Vercel, embeddable on all my sites.
A 1KB tracking snippet posting pageviews to your own endpoint, plus a dashboard: visitors, top pages, referrers, countries, and device split over time.
- Their years of bot filtering and traffic-quality heuristics
- Managed uptime for the ingest endpoint under traffic spikes
- Goals/funnels UI polish and saved segments
- Email reports and team sharing out of the box
Nine dollars for never thinking about ingest reliability or bot noise is a fair trade for businesses; hobbyists genuinely don't need to pay anymore.
A prompt is the first move, not the whole game. Course 01 teaches you to take a prompt like this one to a shipped, working app — reviewing, correcting, and steering the agent the whole way.
Start Course 01 →