PHPackages                             orlserg/utm-recorder - 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. orlserg/utm-recorder

ActiveLibrary

orlserg/utm-recorder
====================

Package to track utm attributes from visitors

v1.0.29(8y ago)223MITPHPPHP &gt;=5.3.3

Since Dec 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/orlserg/utm-recorder)[ Packagist](https://packagist.org/packages/orlserg/utm-recorder)[ RSS](/packages/orlserg-utm-recorder/feed)WikiDiscussions master Synced today

READMEChangelog (10)DependenciesVersions (31)Used By (0)

UtmRecorder
===========

[](#utmrecorder)

UtmRecorder help you record utm parameters from visitors and visited urls.

Documentation
=============

[](#documentation)

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

[](#installation)

```
$ composer require orlserg/utm-recorder
```

Add the service provider and (optionally) alias to their relative arrays in config/app.php:

```
    'providers' => [
        ...
        \Orlserg\UtmRecorder\UtmRecorderServiceProvider::class,
    ],

...

    'aliases' => [
        ...
        'UtmRecorder' => \Orlserg\UtmRecorder\UtmRecorderFacade::class,
    ],
```

Publish the config and migration files:

```
php artisan vendor:publish --provider="Orlserg\UtmRecorder\UtmRecorderServiceProvider"
```

Add the `\Orlserg\UtmRecorder\Middleware\UtmRecorder::class` middleware to `App\Http\Kernel.php` after the `EncryptCookie` middleware:

```
    protected $middleware = [
        \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
        \App\Http\Middleware\EncryptCookies::class,
        \Kyranb\Footprints\Middleware\CaptureAttributionDataMiddleware::class,
    ];
```

Go over the configuration file, and set up settings:

```
    // your own visitor table
    'link_visits_with' => 'visitors',

    // your own visitor model
    'link_visits_with_model' => \App\Visitor::class,
```

Run:

```
$ php artisan migrate
```

Link your own visitor model with visits table like so:

```
    public function visits()
    {
        return $this->HasMany(Visit::class, 'owner_id', 'id');
    }
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity69

Established project with proven stability

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

Recently: every ~73 days

Total

30

Last Release

2972d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/09a56993a1cce0bdeec945d5daa0a61f07872f93b6fd3a0e12f8496430987073?d=identicon)[Sergey Orlov](/maintainers/Sergey%20Orlov)

---

Top Contributors

[![orlserg](https://avatars.githubusercontent.com/u/4979336?v=4)](https://github.com/orlserg "orlserg (2 commits)")

---

Tags

laravelUTMutm trackerutm-recorder

### Embed Badge

![Health badge](/badges/orlserg-utm-recorder/health.svg)

```
[![Health](https://phpackages.com/badges/orlserg-utm-recorder/health.svg)](https://phpackages.com/packages/orlserg-utm-recorder)
```

###  Alternatives

[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[suarez/laravel-utm-parameter

A little helper to store and handle utm-parameter

1513.8k](/packages/suarez-laravel-utm-parameter)

PHPackages © 2026

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