django‑zaydany‑analytics — privacy‑first, self‑hosted analytics dashboard for Django

Hey everyone,

Last week I started building something I needed — a simple, privacy‑respecting analytics dashboard for Django projects. Today it’s live on PyPI and GitHub.

It’s called django‑zaydany‑analytics.

What it does:

  • Tracks page views, sessions, bounce rate, pages/session
  • Shows referrers, browsers, OS, devices
  • Has an offline world map (GeoLite2, no external API calls)
  • Supports custom event tracking (just add data attributes to any element)
  • Comes with 12 themes and 5 languages (including Arabic RTL)
  • Exports every table to CSV/JSON
  • Optionally shows billing data if you plug in your models
  • Everything is configurable from a single ZAYDANY_ANALYTICS dict in settings.py

The crazy part: I built this with almost no internet. Downloading the 60 MB GeoIP database took over 4 hours. Pushing this release cost a small piece of savings I had set aside for my main project. I couldn’t Google anything, couldn’t browse documentation — just worked offline with what I had.

Open source is what makes our work possible. This is my small contribution back.

Links:

Feedback and stars mean the world to me. Thanks for reading!

2 Likes