PHPackages                             laravel-visitor-analytics/laravel-visitor-analytics - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. laravel-visitor-analytics/laravel-visitor-analytics

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laravel-visitor-analytics/laravel-visitor-analytics
===================================================

1.0.0(4mo ago)026PHP

Since Feb 12Pushed 4mo agoCompare

[ Source](https://github.com/mahmoodbarzegar/laravel-visitor-analytics)[ Packagist](https://packagist.org/packages/laravel-visitor-analytics/laravel-visitor-analytics)[ RSS](/packages/laravel-visitor-analytics-laravel-visitor-analytics/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel visitor Analytics 📊
===========================

[](#laravel-visitor-analytics-)

A lightweight, self-hosted, and privacy-focused visitor tracking package for Laravel applications. Monitor your website traffic without relying on heavy third-party services like Google Analytics.

🚀 Key Features
==============

[](#-key-features)

Unique Visit Tracking: Uses a smart caching mechanism to prevent duplicate hits from page refreshes (Unique IPs per 24h).

Minimalistic Dashboard: Built-in analytics overview with Chart.js integration.

Performance Optimized: Designed to be non-intrusive and fast, ensuring your site speed remains unaffected.

Data Rich: Tracks URLs, IP addresses, User-Agents, and authenticated User IDs.

Plug &amp; Play: Easy integration via Laravel Middleware.

🛠 Installation
==============

[](#-installation)

You can install the package via composer (assuming it is hosted on GitHub or local path):

### composer require laravel-visitor-analytics/laravel-visitor-analytics

[](#composer-require-laravel-visitor-analyticslaravel-visitor-analytics)

Bash
----

[](#bash)

Run the migrations to create the visits table:

Bash php artisan migrate

📖 Usage
=======

[](#-usage)

1. Register the Middleware
--------------------------

[](#1-register-the-middleware)

The easiest way to track visits is to apply the 'track.visits' middleware to your routes in routes/web.php:

Route::middleware(\['track.visits'\])-&gt;group(function () { Route::get('/example', \[ExampleController::class, 'index'\]); });

2. Access the Dashboard
-----------------------

[](#2-access-the-dashboard)

By default, you can view your stats at: your-domain.com/admin/analytics

📊 Analytics Dashboard
=====================

[](#-analytics-dashboard)

The dashboard provides:

Daily Traffic Trends: Visualized via a smooth line chart.

Top Pages: Discover which URLs are performing best.

Key Metrics: Total visits vs. Unique visitors.

🔒 Privacy &amp; Security
========================

[](#-privacy--security)

This package stores data locally on your server. No data is shared with third parties, making it a great choice for GDPR compliance.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance74

Regular maintenance activity

Popularity7

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

143d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/139250533?v=4)[Mahmood Barzegar](/maintainers/mahmoodbarzegar)[@mahmoodbarzegar](https://github.com/mahmoodbarzegar)

### Embed Badge

![Health badge](/badges/laravel-visitor-analytics-laravel-visitor-analytics/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-visitor-analytics-laravel-visitor-analytics/health.svg)](https://phpackages.com/packages/laravel-visitor-analytics-laravel-visitor-analytics)
```

###  Alternatives

[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[open-southeners/laravel-companion-apps

Extend your Laravel applications with companions apps (Android, iOS, PWA...)

234.4k](/packages/open-southeners-laravel-companion-apps)[cleaniquecoders/shrinkr

Shrinkr is a Laravel package for shortening URLs, with custom slugs, analytics, branded domains, and seamless API integration.

157.6k](/packages/cleaniquecoders-shrinkr)[outhebox/nova-fields-agent

This field give the ability to hide fields from your resources table on mobile screens for a better responsive concept

101.2k](/packages/outhebox-nova-fields-agent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
