Self-hosted product & web analytics. One container + MongoDB. Your data never leaves your servers.
767
Product analytics you can run yourself. Your apps send events. Mixdive gives every event its own report screen, a page per customer and a page per order, account or ticket, with nothing defined up front.
mixdive.com · Documentation · Source on GitHub · Open source (AGPL-3.0)

Most analytics tools ask you to send your users' behaviour to somebody else's servers, or fly blind. This image is the third option: the same reports, running on a machine you control.
Your users' data stays on your infrastructure. No vendor holds a copy of who your users are or what they did. Mixdive itself makes one small call, a version check when an owner or admin opens the server's settings. It sends nothing about your installation, and it has an off switch.
Nothing to configure before you get value. Send an event and its report exists. Properties register themselves the first time they appear, so a new field is one click from a breakdown.
Projects kept apart. One server holds your organization, with owners, admins and members, and as many projects as you need. No project can see another's data.
Open source and free. The server is AGPL-3.0, the SDKs are Apache-2.0. Every feature is in the image: no paid edition, no licence key, no seat count, no event limit.
Docker, and nothing else:
curl -O https://docs.mixdive.com/compose.yaml
docker compose up -d
That brings up Mixdive, a MongoDB with a persistent volume, Caddy in front for
HTTPS, and a small clock service that asks Mixdive to process what it received
once a minute. Open http://localhost:8080, or your server's address. A
one-time setup form asks for your organization's name, its first project, the
address your apps will send to and your own account, which becomes the
organization's owner. Then create an app under Settings → Apps & API keys to
get a key, and add your colleagues under Settings → Members.
Already running a MongoDB? Skip Compose, and add the minute call yourself:
docker run -d --name mixdive -p 8080:8080 \
-e MONGODB_URI="mongodb://..." \
mixdive/mixdive:latest
# then, from cron:
# * * * * * curl -fsS -X POST http://localhost:8080/api/tick
Four modules, each switched on or off per project, so a project that only wants web traffic never grows a users table.
| Module | What it does |
|---|---|
| Event analytics | Every event gets a report: totals, trends, top users, breakdowns by any property it carries. Add measures and an event counts revenue, duration or quantity as well as occurrences. |
| Web analytics | Visitors, pages and the browsers, devices and app versions behind them, from a one-line script tag. |
| User analytics | Profiles, per-user activity, and relations with roles, so "likes given" and "likes received" are two different numbers. |
| Data models | Records that merge and increment. A product, an order, a support ticket, each with its own screen and its own counters. |
An ingest request is stored and answered at once; the minute call processes it, so reports trail your apps by about a minute. Each event counts exactly once, so a retry or a double delivery never inflates a number.
Give the setup form an https:// address, point that name's DNS record at the
machine, and leave ports 80 and 443 open. The bundled proxy gets the
certificate the first time somebody opens the address and renews it on its
own. It asks Mixdive first, and Mixdive only approves the one name you
configured.
How it works.
| Variable | Default | Meaning |
|---|---|---|
MONGODB_URI | mongodb://localhost:27017 | the database Mixdive uses; the path may name it (/acme), else mixdive |
PORT | 8080 | HTTP port |
Those two are all an installation needs. The server URL, the optional sign-in captcha and the version check are under Settings → Server, for owners and admins; retention and modules are each project's settings.
latest moves to whatever was released last. Version tags stay put, so pin
one when you want to choose your own upgrade moment. Every tag is built for
linux/amd64 and linux/arm64. Upgrading is
docker compose pull && docker compose up -d. Settings → Server and
GET /health show the version and the commit an installation runs.
Coming from 0.2? 0.3.0 cannot take over a 0.2 database yet: it refuses one
and says so. To stay on 0.2, pin mixdive/mixdive:0.2.1 in your
compose.yaml before you pull. To move, start 0.3.0 on a new, empty database
with the new compose.yaml, which adds the clock service.
What changed in 0.3.0.
A web tag you paste once, React, Next.js, SDKs for Node.js and Go, a Google Tag Manager template, and an HTTP API that needs no SDK at all. More SDKs are coming; if the one you need is missing, write to [email protected].
Mixdive is open source under the GNU AGPL v3, and the code is on GitHub. Issues and pull requests are welcome there.
docker pull mixdive/mixdive:latest