{"id":35313629,"url":"https://github.com/globodai-group/globo-analytics-oss","last_synced_at":"2026-01-13T21:52:29.861Z","repository":{"id":331119024,"uuid":"1125391508","full_name":"globodai-group/globo-analytics-oss","owner":"globodai-group","description":"Privacy-focused, open-source web analytics. Self-hosted Google Analytics alternative.","archived":false,"fork":false,"pushed_at":"2025-12-31T07:58:29.000Z","size":1023,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-03T09:34:21.380Z","etag":null,"topics":["analytics","gdpr","google-analytics-alternative","nextjs","open-source","privacy","self-hosted","web-analytics"],"latest_commit_sha":null,"homepage":"https://globoanalytics.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/globodai-group.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-30T16:38:35.000Z","updated_at":"2025-12-31T07:58:33.000Z","dependencies_parsed_at":"2026-01-03T21:02:12.025Z","dependency_job_id":null,"html_url":"https://github.com/globodai-group/globo-analytics-oss","commit_stats":null,"previous_names":["globodai-group/globo-analytics-oss"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/globodai-group/globo-analytics-oss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globodai-group%2Fglobo-analytics-oss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globodai-group%2Fglobo-analytics-oss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globodai-group%2Fglobo-analytics-oss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globodai-group%2Fglobo-analytics-oss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/globodai-group","download_url":"https://codeload.github.com/globodai-group/globo-analytics-oss/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/globodai-group%2Fglobo-analytics-oss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28401104,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analytics","gdpr","google-analytics-alternative","nextjs","open-source","privacy","self-hosted","web-analytics"],"created_at":"2025-12-30T18:08:23.089Z","updated_at":"2026-01-13T21:52:29.856Z","avatar_url":"https://github.com/globodai-group.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"public/logo.svg\" alt=\"GloboAnalytics\" width=\"200\"/\u003e\n\u003c/p\u003e\n\n\u003ch1 align=\"center\"\u003eGloboAnalytics\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003ePrivacy-focused, open-source web analytics.\u003c/strong\u003e\u003cbr/\u003e\n  A powerful Google Analytics alternative that respects user privacy.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/globodai-group/globo-analytics-oss/actions/workflows/ci.yml?query=branch%3Amain\"\u003e\n    \u003cimg src=\"https://github.com/globodai-group/globo-analytics-oss/actions/workflows/ci.yml/badge.svg?branch=main\" alt=\"CI\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://codecov.io/gh/globodai-group/globo-analytics-oss\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/globodai-group/globo-analytics-oss/branch/main/graph/badge.svg?token=CODECOV_TOKEN\" alt=\"Coverage\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/globodai-group/globo-analytics-oss/releases/latest\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/v/release/globodai-group/globo-analytics-oss?color=blue\u0026cacheSeconds=3600\" alt=\"Release\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"./LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/License-AGPL%20v3-blue.svg\" alt=\"License\"/\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://hub.docker.com/r/artik0din/globo-analytics-oss\"\u003e\n    \u003cimg src=\"https://img.shields.io/docker/pulls/artik0din/globo-analytics-oss?cacheSeconds=3600\" alt=\"Docker Pulls\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#-features\"\u003eFeatures\u003c/a\u003e •\n  \u003ca href=\"#-quick-start\"\u003eQuick Start\u003c/a\u003e •\n  \u003ca href=\"#-documentation\"\u003eDocs\u003c/a\u003e •\n  \u003ca href=\"#-contributing\"\u003eContributing\u003c/a\u003e •\n  \u003ca href=\"#-license\"\u003eLicense\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## Why GloboAnalytics?\n\n- **100% Open Source** - No hidden code, no vendor lock-in\n- **Privacy First** - GDPR, CCPA compliant out of the box\n- **Self-Hosted** - Your data stays on your servers\n- **Lightweight** - \u003c 2KB tracker script, minimal impact on page speed\n- **Real-Time** - See visitors as they happen\n- **No Cookies** - Works without consent banners (optional)\n\n---\n\n## ✨ Features\n\n### Core Analytics (Free)\n\n| Feature                 | Description                               |\n| ----------------------- | ----------------------------------------- |\n| **Pageview Tracking**   | Automatic page views with engagement time |\n| **Real-Time Dashboard** | Live visitor tracking                     |\n| **Visitor Analytics**   | Sessions, unique visitors, bounce rate    |\n| **Geographic Data**     | Country, region, city (GeoIP)             |\n| **Device \u0026 Browser**    | OS, browser, screen resolution            |\n| **Traffic Sources**     | Referrers, UTM campaigns, search engines  |\n| **Goals \u0026 Funnels**     | Conversion tracking with multi-step flows |\n| **Segments**            | Advanced audience segmentation            |\n| **E-Commerce**          | Orders, products, cart events             |\n| **Video Analytics**     | Video start, progress, completion         |\n| **User Flow**           | Journey visualization                     |\n| **Site Search**         | Search query tracking                     |\n| **Alerts**              | Threshold-based notifications             |\n| **Scheduled Reports**   | Email reports via cron                    |\n| **CSV Export**          | Export your data anytime                  |\n| **REST API**            | Full v1 \u0026 v2 API access                   |\n| **Dark Mode**           | Easy on the eyes                          |\n| **Two-Factor Auth**     | TOTP, Passkeys, Email verification        |\n\n### License Tiers\n\nGloboAnalytics uses a license system to unlock additional features and limits:\n\n| Tier           | Domains | Pageviews/month | Users |\n| -------------- | ------- | --------------- | ----- |\n| **Community**  | 3       | 10,000          | 1     |\n| **Pro**        | 10      | 1,000,000       | 10    |\n| **Enterprise** | ∞       | ∞               | ∞     |\n\n\u003e **Note:** Pro and Enterprise licenses unlock additional features like AI insights, advanced bot detection, and priority support. Contact us for licensing options.\n\n---\n\n## 🚀 Quick Start\n\n### Option 1: Docker (Recommended)\n\n```bash\n# Pull the pre-built image\ndocker pull artik0din/globo-analytics-oss:latest\n\n# Or use docker-compose\ncurl -O https://raw.githubusercontent.com/globodai-group/globo-analytics-oss/main/docker-compose.prod.yml\ncurl -O https://raw.githubusercontent.com/globodai-group/globo-analytics-oss/main/.env.example\n\n# Configure environment\ncp .env.example .env\necho \"NEXTAUTH_SECRET=$(openssl rand -base64 48)\" \u003e\u003e .env\n\n# Start the application\ndocker-compose -f docker-compose.prod.yml up -d\n\n# Access at http://localhost:3000\n```\n\n### Option 2: Build from Source\n\n```bash\n# Clone the repository\ngit clone https://github.com/globodai-group/globo-analytics-oss.git\ncd globo-analytics-oss\n\n# Copy and configure environment\ncp .env.example .env\n# Edit .env with your settings\n\n# Start with docker-compose (builds locally)\ndocker-compose up -d\n```\n\n### Option 3: Manual Installation\n\n**Prerequisites:** Node.js 20+, PostgreSQL 16+, [Bun](https://bun.sh)\n\n```bash\n# Install Bun (if not already installed)\ncurl -fsSL https://bun.sh/install | bash\n\n# Clone the repository\ngit clone https://github.com/globodai-group/globo-analytics-oss.git\ncd globo-analytics-oss\n\n# Install dependencies\nbun install\n\n# Configure environment\ncp .env.example .env\n# Edit .env with your database URL and settings\n\n# Run database migrations\nbun run db:migrate\n\n# Build for production\nbun run build\n\n# Start the server\nbun run start\n```\n\n### First Run: Setup Wizard\n\nOn first launch, you'll be guided through the setup wizard:\n\n1. **License Key** (optional) - Enter your license key or continue with Community edition\n2. **Admin Account** - Create your administrator account\n\n---\n\n## 📊 Adding the Tracking Script\n\nAdd this snippet to your website, just before `\u003c/head\u003e`:\n\n```html\n\u003cscript\n  defer\n  src=\"https://your-analytics-domain.com/js/tracker.js\"\n  data-website-id=\"YOUR_WEBSITE_ID\"\n\u003e\u003c/script\u003e\n```\n\n### Tracker Options\n\n| Attribute              | Description                | Default  |\n| ---------------------- | -------------------------- | -------- |\n| `data-website-id`      | Your website identifier    | Required |\n| `data-track-outbound`  | Track outbound link clicks | `false`  |\n| `data-track-downloads` | Track file downloads       | `false`  |\n| `data-honor-dnt`       | Respect Do Not Track       | `false`  |\n| `data-hash-mode`       | Track hash changes (SPA)   | `false`  |\n\nSee [Tracker Documentation](./docs/TRACKER.md) for advanced options.\n\n---\n\n## 🔄 Upgrading\n\n### Docker\n\n```bash\n# Pull the latest image\ndocker pull artik0din/globo-analytics-oss:latest\n\n# Restart with new version\ndocker-compose -f docker-compose.prod.yml up -d\n\n# Check logs\ndocker-compose logs -f app\n```\n\n### Manual Installation\n\n```bash\ngit pull origin main\npnpm install\npnpm db:migrate\npnpm build\npm2 restart globo-analytics  # or your process manager\n```\n\n---\n\n## 🏗️ Architecture\n\n```\n┌─────────────────────────────────────────────────────────────┐\n│  YOUR INFRASTRUCTURE                                        │\n│                                                             │\n│  ┌──────────────┐  ┌──────────────┐  ┌─────────────────┐   │\n│  │  Dashboard   │  │  Tracker.js  │  │   PostgreSQL    │   │\n│  │  (Next.js)   │  │  (\u003c 2KB)     │  │  (Your Data)    │   │\n│  └──────────────┘  └──────────────┘  └─────────────────┘   │\n│         │                                    │              │\n│         └──────────────┬─────────────────────┘              │\n│                        │                                    │\n│  ┌─────────────────────▼─────────────────────────────────┐ │\n│  │                    Redis (Optional)                    │ │\n│  │              Event Queue \u0026 Caching                     │ │\n│  └────────────────────────────────────────────────────────┘ │\n└─────────────────────────────────────────────────────────────┘\n```\n\n**All data stays on your servers.** No external calls required for core analytics.\n\n---\n\n## 🔒 Privacy \u0026 Security\n\n### Your Data, Your Servers\n\n- All analytics data stored in **your** PostgreSQL database\n- No external tracking or telemetry\n- Cookie-free tracking option available\n\n### GDPR Compliance\n\n- Built-in consent management\n- Data export and deletion APIs\n- IP anonymization options\n- EU hosting supported\n\n### Security Features\n\n- TLS encryption\n- Rate limiting\n- XSS/CSRF protection\n- Two-factor authentication\n- Passkey support (WebAuthn)\n\n---\n\n## 📚 Documentation\n\n| Document                                     | Description                      |\n| -------------------------------------------- | -------------------------------- |\n| [Self-Hosting Guide](./docs/SELF_HOSTING.md) | Detailed deployment instructions |\n| [Configuration](./docs/CONFIGURATION.md)     | Environment variables            |\n| [API Reference](./docs/API.md)               | REST API documentation           |\n| [Tracker Reference](./docs/TRACKER.md)       | Tracking script options          |\n| [Upgrading](./docs/UPGRADING.md)             | Version migration guides         |\n| [FAQ](./docs/FAQ.md)                         | Frequently asked questions       |\n\n---\n\n## 🛠️ Development\n\n### Prerequisites\n\n- Node.js 20+\n- pnpm\n- PostgreSQL 16+\n- Redis (optional)\n\n### Setup\n\n```bash\n# Clone and install\ngit clone https://github.com/globodai-group/globo-analytics-oss.git\ncd globo-analytics-oss\npnpm install\n\n# Start databases\ndocker-compose up -d postgres redis\n\n# Setup environment\ncp .env.example .env\n\n# Run migrations\npnpm db:migrate\n\n# Start development server\npnpm dev\n```\n\n### Quality Tools\n\nThis project uses:\n\n- **Husky** - Git hooks\n- **lint-staged** - Pre-commit checks\n- **commitlint** - Conventional commits\n- **ESLint** - Code linting\n- **Prettier** - Code formatting\n- **Vitest** - Unit testing\n\n### Available Scripts\n\n```bash\npnpm dev          # Start development server\npnpm build        # Build for production\npnpm lint         # Run ESLint\npnpm format       # Format with Prettier\npnpm type-check   # TypeScript check\npnpm test         # Run tests\npnpm test:coverage # Run tests with coverage\n```\n\n---\n\n## 🤝 Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](./CONTRIBUTING.md).\n\n### Quick Start\n\n```bash\n# Fork and clone\ngit clone https://github.com/YOUR_USERNAME/globo-analytics-oss.git\n\n# Create a feature branch\ngit checkout -b feature/my-feature\n\n# Make changes and commit (conventional commits enforced)\ngit commit -m \"feat: add my feature\"\n\n# Push and create PR to dev branch\ngit push origin feature/my-feature\n```\n\n### Commit Convention\n\nWe use [Conventional Commits](https://www.conventionalcommits.org/):\n\n- `feat:` - New feature\n- `fix:` - Bug fix\n- `docs:` - Documentation\n- `style:` - Formatting\n- `refactor:` - Code refactoring\n- `test:` - Tests\n- `chore:` - Maintenance\n\n---\n\n## 📄 License\n\nGloboAnalytics OSS is licensed under [AGPL-3.0](./LICENSE).\n\n**What this means:**\n\n- ✅ Free to use for any purpose\n- ✅ Free to modify and distribute\n- ✅ Free to use commercially\n- ⚠️ Modifications must be open-sourced under AGPL\n- ⚠️ Network use counts as distribution\n\n**Need a commercial license?** [Contact us](mailto:enterprise@globoanalytics.com) for options without AGPL obligations.\n\n---\n\n## 🙏 Acknowledgements\n\nBuilt with:\n\n- [Next.js](https://nextjs.org/) - React framework\n- [Prisma](https://prisma.io/) - Database ORM\n- [Tailwind CSS](https://tailwindcss.com/) - Styling\n- [Radix UI](https://radix-ui.com/) - Components\n- [Recharts](https://recharts.org/) - Charts\n- [Lucide](https://lucide.dev/) - Icons\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003csub\u003eBuilt with ❤️ by the GloboAnalytics team\u003c/sub\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobodai-group%2Fglobo-analytics-oss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglobodai-group%2Fglobo-analytics-oss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglobodai-group%2Fglobo-analytics-oss/lists"}