Loading
Comparison
bettermetrics is a free, open-source, cookieless alternative to Google Analytics. It reports pageviews, JavaScript errors and Core Web Vitals from a single 2.5 kB script tag, stores every event in a PostgreSQL database you own, and needs no cookie consent banner in its default mode. Google Analytics is a far broader product. This page is about what you trade away and what you get back.

| bettermetrics | Google Analytics 4 | |
|---|---|---|
| Price | Free plan, then $12 a month | Free tier; paid 360 tier for large accounts |
| Source code | MIT: run your own copy free, all features | Closed, hosted only |
| Who is in the data path | Us, and nobody else | An advertising company |
| Cookies | None by default | Yes (_ga), by default |
| Consent banner in the EU | Not required in cookieless mode | Required |
| Script size | 2.5 kB gzipped | Substantially larger |
| Install | One script tag | Tag or Google Tag Manager container |
| JavaScript errors | Built in | Not a feature; needs a second tool |
| Core Web Vitals | Built in (LCP, CLS) | Via a separate library or report |
| User journeys | Built in, ordered per session | Path exploration, in the report builder |
| Funnels | Suggested from your data, then editable | Built by hand in explorations |
| Data retention | 30 days free, up to 36 months paid | 14 months maximum on the free tier |
| Sampling | None, every event is counted | Applied above thresholds in explorations |
| Time to read a number | Four screens, no configuration | Report builder, dimensions, filters |
Running both side by side is normal and costs one extra script tag.
<head>, next to the gtag.js snippet you already have.Full install instructions are in the documentation.

No card, no end date. MIT licensed, so you can also run the whole thing yourself and never pay us anything.
Start measuring