ninelytics

One tag, everything.

Ninelytics: Free open source web analytics platform - the best privacy-first Google Analytics alternative with AI-powered insights and GDPR compliance

The free, open source web analytics platform with AI-powered insights, GDPR-compliant consent, and real-time dashboard. Self-host it. Own your data.

< 10kb
Gzipped
OSS
MIT License
Zero
Cookies
GDPR
Consent
605 491 ↑ 3x
1.2k 890 ↑ 2x
943 712 ↑ 4x
1.5k 980 ↑ 2x
387 264 ↑ 1x
521 410 ↑ 3x
762 583 ↑ 5x
418 305 ↑ 2x
554 421 ↑ 2x
892 670 ↑ 3x
Recently migrated from Next.js TanStack + Hono + Bun

Web Analytics Features

Everything you need from a web analytics platform, without the complexity. Built for indie founders and developers who want a privacy-first Google Analytics alternative.

Ninelytics open source web analytics dashboard showing real-time visitors, page views, referrers, and geographic insights

Privacy-first analytics

No cookies, no fingerprinting. Built-in consent banner with granular category controls. GDPR, CCPA, and PECR compliant out of the box. A truly cookieless analytics solution.

Real-time analytics dashboard

See who is on your site right now. Live visitor feed, active pages, and geographic distribution updated every 5 seconds.

Core Web Vitals monitoring

Monitor Core Web Vitals (LCP, FCP, INP, CLS, TTFB) from real user sessions. Real Experience Score at a glance with page-level drill-down.

Geographic insights

Interactive world map with visitor locations. Drill down by country, region, and city with MaxMind GeoIP integration.

AI-powered analytics

Anomaly detection with severity alerts, 7-day traffic forecasts with confidence intervals, and actionable recommendations that understand your business.

Sitemap auto-indexing

Automatically submit new URLs to Google and Bing via Indexing API and IndexNow. Smart quota management with URL Inspection pre-checks.

Goals & conversion tracking

Define pageview, event, or duration goals. Track conversion funnels and measure what matters to your business.

Self-hosted analytics

Self-host on your infrastructure. PostgreSQL for storage, Redis for caching. Your data never leaves your servers. No vendor lock-in.

Custom analytics reports

Build and save custom report queries with the metrics that matter to you. Schedule and export as CSV, JSON, or Excel.

Simple integration

One script tag. Under 10kb gzipped, async loaded. No impact on your site performance. Works with any framework or static site.

Team access

Role-based permissions with admin, owner, and viewer roles. Per-website access control for your whole team.

Background workflows

Durable task scheduling powered by Next.js Workflow. Sitemap polling, index submissions, and background jobs that survive server restarts.

Analytics Dashboard

Visualize your data with powerful (and beautiful) charts and insights.

Chart
1 / 3

Core Web Vitals Monitoring

Monitor Core Web Vitals from real user sessions. A single score to understand your site's real-world performance, with page-level drill-down.

91 RES
LCP Largest Contentful Paint
1.8s
FCP First Contentful Paint
1.2s
INP Interaction to Next Paint
120ms
CLS Cumulative Layout Shift
0.15
TTFB Time to First Byte
340ms

Real Experience Score

Weighted 0-100 score combining all five vitals at the p75 percentile. One number to rule them all.

Page-level drill-down

Identify your slowest pages by metric. Filter by device type to debug mobile vs desktop issues.

Zero overhead

Uses native browser Web Vitals APIs. No extra scripts, no performance impact on your visitors.

AI-Powered Analytics Insights

Your web analytics, explained. AI-powered anomaly detection, traffic forecasts, and actionable recommendations that understand your business context.

Anomaly detection

Something looks off?

Statistical analysis compares current metrics against 30-day baselines. Traffic spikes, bounce rate shifts, and session drops flagged with severity levels.

Predictions

What's coming next?

7-day traffic forecast with 95% confidence intervals using linear regression on historical data. Know your expected visitors before the week starts.

Recommendations

What should I fix?

Prioritized action items based on your data. High bounce rate? Short sessions? Mobile issues? Get specific fixes with expected impact.

Multi-source

The full picture

Correlates analytics, Search Console keywords, Stripe revenue, and Speed Insights data for context-aware analysis across your entire stack.

AI Insight
1 / 2

Sitemap auto-indexing

New pages get submitted to search engines automatically. No manual work, no wasted quota.

01 Sitemap poll

Every 6 hours

02 Diff & detect

New URLs found

03 Submit

Google + IndexNow

Google Indexing API

Submit new URLs directly to Google with smart 200/day quota management and automatic retry on errors.

IndexNow

Instant notification to Bing, Yandex, and other participating search engines. No quota limits, batch submissions.

URL Inspection

Pre-checks if a URL is already indexed before submitting. Saves your Indexing API quota for pages that actually need it.

Status tracking

Per-URL status dashboard showing pending, submitted, indexed, and error states with submission timestamps.

Integrations

Import your existing data, connect your tools, and switch without losing your history.

Google Analytics

Live

Import up to 364 days of historical data. Page views, sessions, and traffic sources.

Cloudflare Analytics

Live

Migrate your Cloudflare analytics via API token. Live data takes priority, imported data fills gaps.

Google Search Console

Live

Connect search performance data for richer AI insights. Keywords, impressions, and click-through rates.

Stripe

Live

Link revenue data to your analytics. See which pages and traffic sources drive conversions.

PostHog

Live

Import event data and feature flag context from PostHog. Combine product analytics with web analytics.

More coming soon

Soon

Have a request? Open an issue on GitHub.

GDPR Consent Built In

No extra plugins, no third-party consent managers. GDPR, CCPA, and PECR compliant consent banner ships inside the same lightweight analytics script. One tag, everything included.

Single script

Analytics + consent in one lightweight async script. No extra requests, no layout shift.

Dark & light mode

The consent UI automatically adapts to your site's color scheme. No styling needed.

Clean, minimal UI

Granular category controls with a non-intrusive design that respects your site's aesthetics.

GDPR & CCPA

Configurable per-website from your dashboard. Visitor choices stored in localStorage, never sent to your server.

How it works

No complex setup, no configuration headaches. Add one lightweight script tag and start tracking your web analytics in minutes.

01

Add the script

One script tag with your tracking code. Lightweight, async loaded, zero impact on performance.

02

See your data

Visitors, page views, referrers, devices, and locations. All in a clean real-time dashboard.

03

Get insights

AI detects anomalies, predicts trends, and gives actionable recommendations in plain language.

<script
  src="https://yourdomain.com/analytics.js"
  data-tracking-code="YOUR_CODE"
  defer
></script>

Free Open Source Analytics

The full web analytics platform is open source and free to self-host. No feature gates, no limits. A managed cloud version is coming soon.

Community

MIT
Free forever

Self-hosted, fully open source. Deploy on your own infrastructure.

  • + Unlimited websites
  • + Unlimited page views
  • + Real-time dashboard
  • + AI-powered insights
  • + Goal tracking & conversions
  • + Custom reports
  • + Team access & roles
  • + Data import (GA, Cloudflare)
  • + Geographic maps
  • + API access
Deploy Today

Managed hosting so you don't have to worry about infrastructure.

Join the waitlist

Open Source Web Analytics

Ninelytics is fully open source under the MIT license. Inspect the code, contribute features, report bugs, or fork it and make it yours. No vendor lock-in, ever. The Google Analytics open source alternative you've been looking for.