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:
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!