A modern Full Stack Analytics SaaS Platform built with Next.js 16, Insforge Authentication, and Tailwind CSS, deployed on Vercel.
Track everything about your website visitors with a single script tag --- from unique visitors and page views to traffic sources, live sessions, device details, and geolocation maps.
- 🔐 Secure Authentication (Insforge)
- 📊 Analytics Dashboard with Interactive Charts
- 📈 Unique Visitors Tracking
- 👀 Page Views Tracking
- 🌍 Geolocation Tracking with Map View
- 🖥️ Device Tracking (Browser & OS Detection)
- 🌐 Traffic Source Tracking (Referrer, UTM)
- 🚪 Entry & Exit Page Analytics
- ⚡ Real-Time Live Visitor Tracking
- 🏷️ Single Script Tag Integration
- 🎨 Modern UI with ShadCN + Tailwind Themes
- 🚀 One-Click Deployment with Vercel
- Next.js 16 (App Router)
- Tailwind CSS
- ShadCN UI Components
- ShadCN Themes
- Next.js API Routes
- Insforge Authentication
- IP API (Geolocation)
- Flags API (Country Flags)
- Vercel
API Purpose
http://ip-api.com Visitor IP Geolocation https://flagsapi.com Country Flag Rendering https://ui.shadcn.com UI Components https://nextjs.org Framework
- User signs up / logs in via Insforge authentication.
- User creates a project inside dashboard.
- Platform generates a unique tracking script.
- User adds the script tag to their website.
- Script collects:
- Visitor IP
- Device info
- Browser
- OS
- Referrer
- Page URL
- Timestamp
- Data is stored securely.
- Dashboard renders:
- Charts
- Maps
- Device analytics
- Traffic insights
- Live visitor tracking
<script src="https://yourdomain.com/analytics.js" data-project-id="PROJECT_ID"></script>Just add this script to your website's <head> or before </body>.
- Total Visitors
- Unique Visitors
- Total Page Views
- Top Pages
- Traffic Sources
- Device Breakdown
- OS Breakdown
- Country Map Visualization
- Entry Pages
- Exit Pages
- Live Visitors Counter
git clone https://github.com/yourusername/analytics-saas.git
cd analytics-saasnpm installCreate .env.local:
NEXT_PUBLIC_APP_URL=http://localhost:3000
INSFORGE_SECRET_KEY=your_secret
INSFORGE_APP_URL=your_url
npm run devVisit:
http://localhost:3000
- Push code to GitHub
- Connect repository to Vercel
- Add environment variables
- Deploy
Your Analytics SaaS is now live.
- Multi-tenant architecture
- Per-project analytics isolation
- Scalable tracking system
- Real-time data updates
- Production-ready deployment
- Auth-protected dashboard
- Project-level data isolation
- Secure API endpoints
- Environment variable protection
- Clean SaaS Dashboard Layout
- Dark/Light Mode Support
- Responsive Design
- Professional Charts & Graphs
- Modern ShadCN UI Components
- Revenue tracking
- Conversion funnel analytics
- Session replay
- Heatmaps
- AI-powered insights
- Custom event tracking
MIT License
Built with ❤️ using Next.js 16 & Insforge.