2017 © Pedro Peláez
 

library laravel-campaign-activity-tracker

Track the activity of your campaigns on your Laravel application

image

fhusquinet/laravel-campaign-activity-tracker

Track the activity of your campaigns on your Laravel application

  • Monday, July 9, 2018
  • by fhusquinet
  • Repository
  • 1 Watchers
  • 2 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Track the activity of your campaigns on your Laravel application

Latest Version on Packagist Total Downloads, (*1)

If you are managing AdWords or Facebook campaigns using UTM parameters in your URLs this package might be for you! Simply add the TracksCampaignActivity trait on your wanted models and the TrackCampaigns Middleware to your wanted routes and see what impact your campaigns have on your data. It will track the created, updated and deleted event on the models using the TracksCampaignActivity and store the UTM parameters, url and time of visit of each different instance in the database., (*2)

Installation

You can install the package via composer:, (*3)

composer require fhusquinet/laravel-campaign-activity-tracker

Usage

Add the TracksCampaignActivity trait to your wanted models. ``` php // App\Models\Article.php, (*4)

namespace App\Models;, (*5)

use FHusquinet\CampaignActivityTracker\Traits\TracksCampaignActivity; use Illuminate\Database\Eloquent\Model;, (*6)

class Article extends Model { use TracksCampaignActivity, (*7)


And add the TrackCampaigns middleware to your wanted routes, you can either set it at the global level or on a route basis. ``` php \\ App/Http/Kernel.php /** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ // \FHusquinet\CampaignActivityTracker\Middleware\TrackCampaigns::class ],

``` php \ App/Http/Kernel.php, (*8)

protected $routeMiddleware = [ // 'campaignTracker' => \FHusquinet\CampaignActivityTracker\Middleware\TrackCampaigns::class ];, (*9)

// routes/web.php Route::get('/')->middleware('campaignTracker');, (*10)


### Testing ``` bash composer test

Changelog

Please see CHANGELOG for more information what has changed recently., (*11)

Contributing

Please see CONTRIBUTING for details., (*12)

Security

If you discover any security related issues, please email florian.husquinet@deegital.be instead of using the issue tracker., (*13)

Thanks

Special thanks to Spatie for their awesome laravel-activitylog package as well as their skeleton-php package for getting me the inspiration and help required for this package!, (*14)

Credits

License

The MIT License (MIT). Please see License File for more information., (*15)

The Versions

09/07 2018

dev-master

9999999-dev https://github.com/fhusquinet/laravel-campaign-activity-tracker

Track the activity of your campaigns on your Laravel application

  Sources   Download

MIT

The Requires

 

The Development Requires

fhusquinet laravel-campaign-activity-tracker

09/07 2018

1.0.1

1.0.1.0 https://github.com/fhusquinet/laravel-campaign-activity-tracker

Track the activity of your campaigns on your Laravel application

  Sources   Download

MIT

The Requires

 

The Development Requires

fhusquinet laravel-campaign-activity-tracker

17/05 2018

1.0.0

1.0.0.0 https://github.com/fhusquinet/laravel-campaign-activity-tracker

Track the activity of your campaigns on your Laravel application

  Sources   Download

MIT

The Requires

 

The Development Requires

fhusquinet laravel-campaign-activity-tracker