An open API service indexing awesome lists of open source software.

https://github.com/heysagnik/diy-analytics

Set up your analytics server before your coffee gets cold.
https://github.com/heysagnik/diy-analytics

2025 analytics dashboard diy hacktoberfest mongodb nextjs open-source tailwindcss web web-analytics

Last synced: about 2 months ago
JSON representation

Set up your analytics server before your coffee gets cold.

Awesome Lists containing this project

README

          

# DIY Analytics ✨

[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![Vercel](https://img.shields.io/badge/Vercel-Ready-black)](https://vercel.com/new/clone?repository-url=https://github.com/heysagnik/diy-analytics)
[![GitHub Stars](https://img.shields.io/github/stars/heysagnik/diy-analytics?style=social)](https://github.com/heysagnik/diy-analytics)

> Privacy-friendly & Powerful website analytics in minutes β€” no coding, no complex setup , no fuss.

![localhost_3000_projects_6831e67f66e2968bb78db4ba](https://github.com/user-attachments/assets/6fd0f55d-74ea-4027-aec0-d78739fbb157)

> ⚠️ Disclaimer: This project is in alpha. Not recommended for production use yet. Expect rapid changes and bugs.

## πŸš€ Instant Setup

Launch your own analytics tool in seconds:

Deploy to Vercel with one click:


[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/heysagnik/diy-analytics)

Prefer manual setup? Follow the **Quick Setup** below.

## ✨ What Makes It Awesome

- **πŸ”’ 100% Privacy-Respecting** – No personal data, no cookies, no pop-ups.

- **⚑ Super Lightweight** – Tracking script is under 2KB. Blazing fast.

- **πŸ“ˆ Insightful Dashboard** – Get traffic data that actually matters.

- **βœ… GDPR & CCPA Friendly** – Compliance built-in, not bolted on.

- **πŸ› οΈ Easy Self-Hosting** – Deploy and integrate with a single line of code.

## πŸ’» Quick Setup

### 1. Clone the repository
```bash
git clone https://github.com/heysagnik/diy-analytics.git
cd diy-analytics
```
### 2. Set up environment variables
Create a .env file similar to the .env.local.example
Then, open .env.local and update MONGODB_URI with your actual MongoDB connection string.
For local development, the default value might work if you have MongoDB running locally.
For production, ensure you use your production database URI.

### 3. Install dependencies
```bash
npm install
```
### 4. Run the development server
```bash
npm run dev
# This will start the application on http://localhost:3000 (or the next available port).
```

## πŸ“Š Add to Your Site

Copy the snippet from your dashboard and paste it into your site’s ``.

## 🀝 Join Our Community & Contribute

We're building DIY Analytics as a community effort and welcome contributions of all kinds! Whether it's reporting a bug, suggesting a feature, improving documentation, or writing code, we'd love your help.

**How to contribute:**
- **Found a bug?** [Open an issue](https://github.com/heysagnik/diy-analytics/issues).
- **Have a feature idea?** [Start a discussion](https://github.com/heysagnik/diy-analytics/discussions) or open an issue.
- **Ready to contribute code or documentation?** Fork the repository, create your feature branch, and then submit a pull request!

Check out our [open issues](https://github.com/heysagnik/diy-analytics/issues) to see where you can help.

Let's build something amazing together!