---
title: "Deploy Mantecato Analytics"
description: "Lightweight, privacy-first web analytics platform."
category: "Analytics"
url: https://railway.com/deploy/mantecato-analytics
---

# Deploy Mantecato Analytics

Lightweight, privacy-first web analytics platform.

**[Deploy Mantecato Analytics on Railway](https://railway.com/template/mantecato-analytics)**

- **Creator:** Giacomo Battaglia's Projects
- **Category:** Analytics
- **Total deploys:** 2

## Template content

### mantecato-db https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### Mantecato Analytics

- **Source:** https://github.com/g-battaglia/mantecato-analytics
- **Start command:** `python manage.py migrate --noinput && python manage.py importumamienv && { if [ -n "${INIT_ADMIN_PASS:-}" ]; then python manage.py createuser "${INIT_ADMIN_USER:-admin}" --role admin --password "$INIT_ADMIN_PASS" || true; fi; } && exec gunicorn mantecato.wsgi:application --bind 0.0.0.0:$PORT --workers 2 --timeout 120 --access-logfile - --error-logfile -`
- **Health check:** /health/
- **Public domain:** Yes

## Documentation

# Deploy and Host Mantecato Analytics on Railway

Mantecato is a lightweight, self-hosted web analytics platform built with Django and PostgreSQL. Track pageviews, sessions, events, and revenue with a simple JavaScript snippet — no cookies, no GDPR consent banners needed.

## About Hosting Mantecato Analytics

Hosting Mantecato on Railway requires two services: a PostgreSQL 16 database and a Python web service running gunicorn behind WhiteNoise for static assets. The app runs migrations automatically before each deploy, creates an initial admin account if configured, and serves traffic on Railway's injected `$PORT`. A health check endpoint confirms both the app and database are reachable. All configuration is via environment variables — no manual setup needed.

## Common Use Cases

- **Website analytics** — Track pageviews, traffic sources, geo, devices, and engagement for one or multiple sites
- **Custom dashboards** — Build configurable analytics dashboards with drag-and-drop widgets
- **Migration from Umami** — Import existing analytics data from a self-click

## Dependencies for Mantecato Analytics Hosting

- PostgreSQL 16
- Python 3.12 with `uv` package manager

### Deployment Dependencies

- [Mantecato GitHub Repository](https://github.com/g-battaglia/mantecato-analytics)
- [Railway Documentation](https://docs.railway.com)

## Why Deploy Mantecato Analytics on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railture so you don't have to deal with configuration, while allowing you tovertically and horizontally scale it.                                                                                                                                      
By deploying Mantecato Analytics on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Betterlytics](https://railway.com/deploy/betterlytics) — Betterlytics is a cookieless analytics platform GDPR-compliant.
- [Finance Tracker](https://railway.com/deploy/finance-tracker-1) — Private multi-user household finance ledger with budgets and CSV import.
- [Matomo Analytics + MariaDB](https://railway.com/deploy/matomo-analytics-mariadb) — Privacy-friendly analytics with MariaDB and persistent volumes.

Open this page in a browser: https://railway.com/deploy/mantecato-analytics
