8000 GitHub - Avik-creator/webtracker: It is a powerful, privacy-focused web analytics platform that helps you to understand the website's reach. More features coming soon.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

It is a powerful, privacy-focused web analytics platform that helps you to understand the website's reach. More features coming soon.

License

Notifications You must be signed in to change notification settings

Avik-creator/webtracker

Repository files navigation

WebTracker

WebTracker Logo

Overview

WebTracker is a powerful, privacy-focused web analytics platform that helps you understand your website's performance and visitor behavior without compromising user privacy. Built with Next.js and modern web technologies, WebTracker provides real-time insights into your web traffic, user engagement, and more.

Features

🚀 Real-Time Analytics - See visitor activity as it happens with live updates and no delay (Coming Soon)

📊 Comprehensive Dashboards - Visualize your web traffic with intuitive charts and graphs

🌎 Global Audience Tracking - Track where your visitors are coming from with country-level analytics

📱 Device Analytics - Understand what devices and operating systems your visitors use

🔍 Traffic Source Analysis - Identify where your visitors are coming from to optimize marketing efforts

Performance Metrics - Monitor page load times and other performance indicators

🔒 Privacy-Focused - Collect data without compromising visitor privacy or using cookies

Tech Stack

  • Frontend: Next.js, React, Tailwind CSS, Framer Motion
  • Backend: Next.js API Routes
  • Database: PostgreSQL with Drizzle ORM
  • Authentication: NextAuth.js
  • Analytics: Custom tracking script
  • Visualization: Recharts, React Simple Maps

Getting Started

Prerequisites

  • Node.js (v18 or later)
  • PostgreSQL database
  • bun

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/webtracker.git
    cd webtracker
  2. Install dependencies:

    bun install
  3. Set up environment variables:

    # Create a .env.local file with the following variables
    DATABASE_URL="postgresql://username:password@localhost:5432/webtracker"
    NEXTAUTH_SECRET="your-nextauth-secret"
    NEXTAUTH_URL="http://localhost:3000"
    
  4. Run the database migrations:

    npx drizzle-kit push
  5. Start the development server:

    bun run dev

Usage

Adding the Tracking Script

For JavaScript/React.js Projects:

Add this snippet to your HTML:

<script
  defer
  data-domain="yourdomain.com"
  src="https://webtracker.avikmukherjee.tech/tracking-script.js"
>
</script>

For Next.js Projects:

Add this snippet to your app/layout.tsx:

<Script
  defer
  data-domain="yourdomain.com"
  src="https://webtracker.avikmukherjee.tech/tracking-script.js"
/>

Viewing Analytics

  1. Register/login to your WebTracker account
  2. Navigate to the Dashboard
  3. Select your website to view detailed analytics

Deployment

Deploying the App

WebTracker can be deployed to any platform that supports Next.js applications:

  1. Build the application:

    bun run build
  2. Start the production server:

    bun run start

Database Setup for Production

Ensure your production database is properly configured and accessible from your deployment environment. Update your environment variables accordingly.

Project Structure

webtracker/
├── public/             # Static assets and tracking script
├── src/                # Source files
│   ├── app/            # Next.js App Router
│   ├── components/     # React components
│   ├── lib/            # Utilities and database schema
│   └── auth.ts         # Authentication configuration
├── .env.example        # Example environment variables
└── README.md           # Project documentation

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feat/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

License

This Project is under GNU General Public License - GPL 3.0.

Contact

Avik Mukherjee - LinkedIn - Twitter/X

Project Link: Repo Link

About

It is a powerful, privacy-focused web analytics platform that helps you to understand the website's reach. More features coming soon.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
0