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 2mo 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 today

READMEChangelog (3)Dependencies (12)Versions (8)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

35

—

LowBetter than 77% of packages

Maintenance66

Regular maintenance activity

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

492d 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-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[codewithdennis/filament-select-tree

The multi-level select field enables you to make single selections from a predefined list of options that are organized into multiple levels or depths.

329530.5k29](/packages/codewithdennis-filament-select-tree)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3914.6k](/packages/rawilk-profile-filament-plugin)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

124603.0k](/packages/worksome-exchange)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

199.4k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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