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.
- Host: GitHub
- URL: https://github.com/heysagnik/diy-analytics
- Owner: heysagnik
- License: mit
- Created: 2025-05-21T18:46:46.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-10-10T06:13:25.000Z (7 months ago)
- Last Synced: 2025-10-20T01:31:59.802Z (6 months ago)
- Topics: 2025, analytics, dashboard, diy, hacktoberfest, mongodb, nextjs, open-source, tailwindcss, web, web-analytics
- Language: TypeScript
- Homepage: https://diy-analytics.vercel.app/
- Size: 1.23 MB
- Stars: 23
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DIY Analytics β¨
[](LICENSE)
[](https://vercel.com/new/clone?repository-url=https://github.com/heysagnik/diy-analytics)
[](https://github.com/heysagnik/diy-analytics)
> Privacy-friendly & Powerful website analytics in minutes β no coding, no complex setup , no fuss.

> β οΈ 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:
[](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!