Embedded analytics
for your SaaS
Open-source analytics dashboard you embed into your product. White-label, multi-tenant, self-hosted. Five lines of code.
npm install @litemetrics/react5 Lines
To Integrate
10
Theme Presets
Multi
Tenant
<3.5KB
Tracker
How it works
Integrate analytics in
three steps
Give your customers a full analytics dashboard. No building from scratch.
Install
Add the UI package to your project
npm install @litemetrics/uiWrap
Connect to your Litemetrics server
<LitemetricsProvider baseUrl="/api/stats" siteId={customerId}>Render
Your customers now have analytics
<AnalyticsDashboard theme="midnight" />That's it. Your customers now have a full analytics dashboard with charts, maps, and tables.
Features
Everything you need,
nothing you don't
Built for developers who ship analytics to their customers.
Ready-Made Dashboard
Drop a full analytics dashboard into your React app. Charts, maps, tables. All pre-built. Your customers get analytics without you building anything.
White-Label Theming
10 built-in presets. CSS custom properties for full control. Your brand colors, your dashboard. Dark mode included.
Multi-Tenant
Each customer gets their own isolated analytics. One database, zero cross-contamination. Built-in site_id isolation.
Multi-Platform
First-class SDKs for React, React Native, Next.js, Vue, and plain HTML. One API everywhere.
Lightweight
3.5KB gzipped tracker. Zero performance impact. Loads async, batches events, never blocks your UI.
Self-Hosted
ClickHouse, Postgres, or MongoDB with full feature parity. Deploy on your infra. No cookies, no third parties, GDPR-compliant by design.
Setup
Five lines. That's it.
Integrate a full analytics dashboard in under a minute.
import { LitemetricsProvider, AnalyticsDashboard } from '@litemetrics/ui';
function CustomerDashboard({ customerId }) { return ( <LitemetricsProvider baseUrl="/api/stats" siteId={customerId} > <AnalyticsDashboard theme="midnight" /> </LitemetricsProvider> );}Dashboard
This is what your
customers get
Ship this dashboard as part of your product. Fully themeable, dark mode included. No iframe. Native React components.
Pageviews
24,831
+12.5%
Visitors
8,492
+8.2%
Sessions
11,247
+5.1%
Events
3,104
+22.8%
Visitors Β· Last 30 Days
Top Pages
Countries
Browsers
Built in the open
Litemetrics is open source and MIT licensed. Built for SaaS developers who want to offer analytics to their customers without building from scratch. Inspect every line, contribute, or fork it entirely.
FAQ
Frequently asked questions
Everything you need to know before you embed Litemetrics.