# Traffic Source

> Self-hosted web analytics with Stripe conversion tracking, affiliate system, and Google Search Console integration. Runs on SQLite, no external database needed.

- **Category:** Analytics
- **Licence:** MIT
- **Open source:** oss
- **Languages:** JavaScript
- **Platforms:** Linux, Railway
- **Tags:** Web Analytics, Analytics, SQLite, Privacy, Stripe, Next.js, Self Hosted, Affiliate, Conversion tracking, Search Console

## Description

Traffic Source is a self-hosted web analytics platform built with Next.js 16 and React 19 that tracks visitor traffic, referrers, UTM parameters, and conversions. It uses SQLite as a zero-config database with WAL mode, requiring no external database server. Key capabilities include real-time analytics with live visitor counts, traffic source breakdowns with UTM parameters, geo tracking via Cloudflare proxy headers, device and browser analytics, Google Search Console integration for keyword data, Stripe conversion tracking that polls payments every 60 seconds without webhooks, an affiliate system with custom commission rates and public dashboards, visitor journey session replays, and multi-site tracking from a single dashboard. The tracking script is ~3KB with SPA support. Deployment options include a one-click Railway deploy or manual VPS setup with Node.js 20+, PM2 for process management, and Nginx reverse proxy. The cloud version at piqo.app offers a managed alternative with pricing tiers. The project is MIT licensed.

## Links

- [Homepage](https://github.com/mddanishyusuf/traffic-source)
- [Website](https://piqo.app)
- [Demo](https://piqo.app/demo)
- [GitHub Repository](https://github.com/mddanishyusuf/traffic-source)
- [Railway Deploy](https://railway.com/deploy/traffic-source)

---
Source: https://selfhost.directory/project/traffic-source