Home
Softono
diy-analytics

diy-analytics

Open source MIT TypeScript
26
Stars
2
Forks
14
Issues
1
Watchers
4 months
Last Commit

About diy-analytics

Set up your analytics server before your coffee gets cold.

Platforms

Web Self-hosted

Languages

TypeScript

DIY Analytics ✨

MIT License Vercel GitHub Stars

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

localhost_3000_projects_6831e67f66e2968bb78db4ba

⚠️ 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

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

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

npm install

4. Run the development server

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 <head>.

🀝 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.
  • Have a feature idea? Start a discussion 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 to see where you can help.

Let's build something amazing together!