PHPackages                             nowendwell/app-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. nowendwell/app-analytics

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

nowendwell/app-analytics
========================

Track your Laravel application usage

0.2.1(1y ago)067[3 PRs](https://github.com/nowendwell/app-analytics/pulls)MITPHPPHP ^8.3CI passing

Since Feb 19Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/nowendwell/app-analytics)[ Packagist](https://packagist.org/packages/nowendwell/app-analytics)[ Docs](https://github.com/nowendwell/app-analytics)[ GitHub Sponsors](https://github.com/nowendwell)[ RSS](/packages/nowendwell-app-analytics/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (12)Versions (7)Used By (0)

Track your Laravel application usage
====================================

[](#track-your-laravel-application-usage)

[![Latest Version on Packagist](https://camo.githubusercontent.com/93c2104260a64401641f694ce47beae620c957677eadb86afa599e9e2c01f630/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f77656e6477656c6c2f6170702d616e616c79746963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nowendwell/app-analytics)[![GitHub Tests Action Status](https://camo.githubusercontent.com/16e0a75d3affe8ae1644c0fc416e31d0f08e5975b86b0ccb1182a66ee8b754d8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6f77656e6477656c6c2f6170702d616e616c79746963732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/nowendwell/app-analytics/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/d6add48bdd7a890679f69f27ef486ec21ee536a5b63a8f9bd935c26597981a05/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6f77656e6477656c6c2f6170702d616e616c79746963732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/nowendwell/app-analytics/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/2f9b73991054643e4b71f6143bd0fc3899551fc9647f55b3a99d690616842ee0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f77656e6477656c6c2f6170702d616e616c79746963732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nowendwell/app-analytics)

Track usage analytics for your Laravel application.

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

[](#installation)

You can install the package via composer:

```
composer require nowendwell/app-analytics
```

You can publish the config file with:

```
php artisan vendor:publish --tag="app-analytics-config"
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="app-analytics-migrations"
php artisan migrate
```

Usage
-----

[](#usage)

Simply add the included middleware `\Nowendwell\AppAnalytics\Middleware\TrackAnalyticsMiddleware` to your Http Kernel middleware list and let the package do the rest.

```
protected $middlewareGroups = [
    'web' => [
        // ...
        \Nowendwell\AppAnalytics\Middleware\TrackAnalyticsMiddleware::class,
    ],
```

If you want to keep track of your own custom events, outside of the default page view tracking, you can use the `TrackEvent` facade.

```
use Nowendwell\AppAnalytics\Facades\AppAnalytics;

class InvoicePaymentController extends Controller
{
    public function store(Invoice $invoice): RedirectResponse
    {
        // Track a custom event
        AppAnalytics::event('Invoice Paid', ['invoice_id' => 123, 'amount' => 1000]);

        return response()->redirect(route('invoices.show', $invoice));
    }
}
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Ben Miller](https://github.com/nowendwell)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance69

Regular maintenance activity

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.2% 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 ~4 days

Total

3

Last Release

446d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5315824?v=4)[Ben Miller](/maintainers/nowendwell)[@nowendwell](https://github.com/nowendwell)

---

Top Contributors

[![nowendwell](https://avatars.githubusercontent.com/u/5315824?v=4)](https://github.com/nowendwell "nowendwell (15 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

laravelanalyticsnowendwell

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nowendwell-app-analytics/health.svg)

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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