PHPackages                             prajwal89/lara-click-insights - 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. prajwal89/lara-click-insights

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

prajwal89/lara-click-insights
=============================

Track impressions and clicks

v0.1.4(10mo ago)3140↓100%[3 issues](https://github.com/prajwal89/lara-click-insights/issues)PHPPHP ^8.1|^8.2|^8.3

Since May 6Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/prajwal89/lara-click-insights)[ Packagist](https://packagist.org/packages/prajwal89/lara-click-insights)[ RSS](/packages/prajwal89-lara-click-insights/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

Lara Click Insights
===================

[](#lara-click-insights)

Record impressions and clicks of any model with Lara Click Insights

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

[](#installation)

- Install the package via composer:

```
composer require prajwal89/lara-click-insights
```

- Publish frontend assets:

```
php artisan vendor:publish --tag=lara-click-insights-assets
```

- Publish Database migrations:

```
php artisan vendor:publish --tag=lara-click-insights-migrations
```

- Publish Database config (optional):

```
php artisan vendor:publish --tag=lara-click-insights-config
```

Alternatively, you can publish all of the above with the following command:

```
php artisan vendor:publish
```

When prompted, select Prajwal89\\LaraClickInsights\\LaraClickInsightsProvider.

In your HTML `` tag, add the following directive and meta tag:

```

    ...
    @LaraClickInsightsJs

```

Do not forget to run `php artisan migrate`

Usage
-----

[](#usage)

The Eloquent models you want to track impressions for should use the `Prajwal89\LaraClickInsights\Traits\ImpressionTrackable` trait.

```
namespace App;

use Prajwal89\LaraClickInsights\Traits\ImpressionTrackable;
use Illuminate\Database\Eloquent\Model;

class YourEloquentModel extends Model
{
    use ImpressionTrackable;

    ...
}
```

The trait contains an abstract method `trackingAttribute()` that you must implement yourself on your frontend. this should look something like this

```

@foreach($yourEloquentModels as $yourEloquentModel)
    trackingAttribute() !!}>

@foreach
```

this will add data attribute for identifying the clickable link like `data-clickable="yourEloquentModels:23:default"`

do not forget to use `{!!  !!}`

License
-------

[](#license)

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

###  Health Score

29

↓

LowBetter than 63% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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 ~72 days

Recently: every ~89 days

Total

6

Last Release

321d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3eb26ed1148ea7d71ba384fe0e1a08f01dc17fb0ec09058cd8d8b60aec3d6afc?d=identicon)[prajwal89](/maintainers/prajwal89)

---

Top Contributors

[![prajwal89](https://avatars.githubusercontent.com/u/22263436?v=4)](https://github.com/prajwal89 "prajwal89 (34 commits)")

---

Tags

clicklaravellaravel-packagetrackinglaravelanalyticstrackclicksimpressions

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/prajwal89-lara-click-insights/health.svg)

```
[![Health](https://phpackages.com/badges/prajwal89-lara-click-insights/health.svg)](https://phpackages.com/packages/prajwal89-lara-click-insights)
```

###  Alternatives

[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.3k5.6M49](/packages/spatie-laravel-analytics)[panphp/pan

A simple, lightweight, and privacy-focused product analytics php package.

1.3k88.5k4](/packages/panphp-pan)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205134.9k3](/packages/bezhansalleh-filament-google-analytics)[cornford/googlitics

An easy way to integrate Google Analytics with Laravel.

3210.2k](/packages/cornford-googlitics)[panakour/analytics

Get whatever data you want from google analytics.

267.6k](/packages/panakour-analytics)[ohseesoftware/laravel-server-analytics

Server side analytics for your Laravel application or website.

1420.7k1](/packages/ohseesoftware-laravel-server-analytics)

PHPackages © 2026

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