Project

Ninelytics - Self-Hosted, Privacy-First Web Analytics

9th Avenue Team
9th Avenue Team
View on GitHub
#Analytics #Open source #Privacy #Self-hosted #Next.js
Ninelytics - Self-Hosted, Privacy-First Web Analytics

What is Ninelytics?

Ninelytics is a self-hosted, privacy-first web analytics platform built with Next.js. It gives you full control over your data while providing powerful insights across all your websites from a single dashboard.

Key Features

  • Multi-website tracking, manage and monitor multiple sites from one account
  • Real-time analytics, live visitor feed with session and event data
  • Interactive map, visitor geo-location powered by MapLibre GL and MaxMind
  • Custom reports, build and save your own report queries
  • Goal tracking, define pageview, event, and duration goals with conversion funnels
  • AI assistant, ask questions about your data in natural language
  • Role-based access, Admin, Owner, and Viewer roles with per-website permissions
  • Dark / light theme, system-aware with manual toggle
  • GDPR-friendly, built-in consent banner with granular controls
  • Export, download analytics as CSV, Excel, or JSON

Integrations

All integrations are optional and configured per-website. Historical data merges with live tracking, no gaps when migrating.

  • Cloudflare, import historical pageviews, visitors, top countries/devices/pages
  • Google Analytics 4, import historical data and breakdowns via OAuth
  • Google Search Console, search queries, clicks, impressions, CTR, and positions
  • Stripe, correlate revenue with analytics using a restricted API key
  • PostHog, import analytics via HogQL Query API
  • Sitemap auto-indexing, automatically submit new pages to Google and Bing

Tech Stack

  • Next.js 16 with TypeScript
  • tRPC v11 + TanStack Query v5
  • PostgreSQL with Drizzle ORM
  • Redis for caching and rate limiting
  • shadcn/ui + Tailwind CSS
  • MapLibre GL for interactive maps

Get Started

Check out the GitHub repository to self-host your own instance.