A robust Laravel package for tracking referrals and visitors with advanced analytics, widgets, and a dashboard. This package allows you to track referral codes, UTM parameters, visitor data, and provides a user-friendly interface to visualize referral performance.
Install via Composer
composer require souravmsh/laravel-tracker
Run the Install Command
Publish config, migrations, and assets:
php artisan tracker:install
php artisan vendor:publish --tag=tracker-assets --force
Database Setup
php artisan migrate
The configuration is located at config/tracker.php. Most settings can also be updated at runtime via the /tracker/settings dashboard.
'routes' => [
'prefix' => 'admin/analytics',
'middleware' => ['web', 'auth', 'role:admin'],
],
By default, the analytics terminal is available at:
http://your-app.com/tracker
The TrackerMiddleware is automatically active on the web group. To trigger tracking, include a referral code or UTM parameters:
http://your-app.com?ref=CODE&utm_source=google
Contributions are welcome! Please feel free to submit Pull Requests.
The MIT License (MIT). Please see License File for more information.
How can I help you explore Laravel packages today?