PHPackages                             minabeter/analyze-website - 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. [Admin Panels](/categories/admin)
4. /
5. minabeter/analyze-website

ActiveLibrary[Admin Panels](/categories/admin)

minabeter/analyze-website
=========================

Website analytics package for Laravel and Filament

v1.0.1(today)00MITPHPPHP ^8.3

Since Jun 19Pushed todayCompare

[ Source](https://github.com/mina-8/filament-analyze-website)[ Packagist](https://packagist.org/packages/minabeter/analyze-website)[ RSS](/packages/minabeter-analyze-website/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (3)Used By (0)

Analyze Website Package
=======================

[](#analyze-website-package)

Quick Summary
-------------

[](#quick-summary)

This package helps in tracking and analyzing website visits. It records information about each visit, such as the visited page, visitor information, and the browser used.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require minabeter/analyze-website
```

```
run php artisan migrate
```

Publish the config file with:

```
php artisan vendor:publish --tag=analyze-website-config
```

This will create a `config/analyze-website.php` file in your project.

Usage
-----

[](#usage)

To set up the package correctly, please follow these steps:

1. **Add Service Provider:**In your `bootstrap/providers.php` file, add the following line after `AppServiceProvider::class`:

    ```
    Mina\AnalyzeWebsite\AnalyzeWebsiteServiceProvider::class,
    ```
2. **Add Middleware:**In your `bootstrap/app.php` file, within the `web` middleware group, add `TrackVisit::class`:

    ```
    ->withMiddleware(function (Middleware $middleware): void {
        $middleware->web(append: [
            \Mina\AnalyzeWebsite\Middleware\TrackVisit::class,
            // ... other middleware
        ]);
    })
    ```
3. **Configure Driver:**In your `.env` file, add the following to specify the driver for analytics. You can choose between `database`, `queue`, or `redis`.

    ```
    ANALYTICS_DRIVER=database
    ```

    - **`database`**: (Default) Saves visit data directly to the database.
    - **`queue`**: Pushes visit data to a queue for background processing. Make sure your queue worker is running.
    - **`redis`**: Caches visit data in Redis for high performance.
4. **Redis Driver Setup:**If you choose to use the `redis` driver, you need to schedule a command to flush the cached data to the database periodically.

    In your `app/Console/Kernel.php`, add the following to the `schedule` method:

    ```
    $schedule->command('analytics:flush')->everyMinute();
    ```
5. **Filament Integration:**To display the analytics dashboard in your Filament admin panel, you need to add the `AnalyzeWebsitePlugin` to your panel provider.

    In your panel provider file (e.g., `app/Providers/Filament/AdminPanelProvider.php`), add the following to the `plugins` method:

    ```
    ->plugins([
        \Mina\AnalyzeWebsite\Filament\AnalyzeWebsitePlugin::make()
    ])
    ```

    This will add the analytics page to your Filament admin panel, where you can view the collected data.

    [![Analytics Dashboard](images/analytics-dashboard.png)](images/analytics-dashboard.png)[![Top Pages and Referrers](images/top-pages-and-referrers.png)](images/top-pages-and-referrers.png)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Every ~0 days

Total

2

Last Release

0d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/81963049?v=4)[mina girgis](/maintainers/mina-8)[@mina-8](https://github.com/mina-8)

---

Top Contributors

[![mina-8](https://avatars.githubusercontent.com/u/81963049?v=4)](https://github.com/mina-8 "mina-8 (10 commits)")

---

Tags

pluginlaraveldashboardanalyticsfilamentwebsite analytics

### Embed Badge

![Health badge](/badges/minabeter-analyze-website/health.svg)

```
[![Health](https://phpackages.com/badges/minabeter-analyze-website/health.svg)](https://phpackages.com/packages/minabeter-analyze-website)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3325.1M337](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[hasinhayder/tyro-dashboard

Tyro Dashboard - Beautiful admin dashboard for managing Tyro roles, privileges, users, and settings

5222.7k](/packages/hasinhayder-tyro-dashboard)[simplestats-io/laravel-client

Analytics for Laravel. Track visitors, registrations, and payments. Discover which channels actually drive revenue, not just traffic. Server-side, GDPR compliant, ad-blocker proof.

5019.3k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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