2017 © Pedro Peláez
 

library laralytics

A simple analytics tool for Laravel

image

bsharp/laralytics

A simple analytics tool for Laravel

  • Monday, April 18, 2016
  • by Bsharp
  • Repository
  • 2 Watchers
  • 8 Stars
  • 298 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 27 Versions
  • 0 % Grown

The README.md

Laralytics

Build Status Latest Stable Version Total Downloads License, (*1)

Installation

Composer

To install Laralytics as a Composer package to be used with Laravel 5.*, simply add this to your composer.json:, (*2)

  "Bsharp/laralytics": "dev-master"

Add the service provider

Add this line to your config/app.php file in the service providers array:, (*3)

Bsharp\Laralytics\LaralyticsServiceProvider::class,

Publish

To add all laralytics resources to your app you need to publish them using the vendor:publish artisan command, (*4)

  php artisan vendor:publish

You can specify which resource to publish one by one using:, (*5)

  php artisan vendor:publish --tag=config      # Laralytics configuration
  php artisan vendor:publish --tag=migrations  # Laralytics migrations
  php artisan vendor:publish --tag=middleware  # (optional) Generic middleware to log your app action
  php artisan vendor:publish --tag=eloquent    # For eloquent driver only
  php artisan vendor:publish --tag=js          # For laralytics js file

Add laralytics route for js event, (*6)

  Route::post('laralytics', '\Bsharp\Laralytics\LaralyticsController@payload');

Configuration

Open the config/laralytics.php file, here you can specify: - which driver to use with Laralytics - the path to eloquent models if you use the Eloquent driver - the method to retrieve an authentified user id's, (*7)

Laralytics js

Use the vendor:publish artisan command to add Laralytics js to your public directory, (*8)

To start using Laralytics add the file to your view, (*9)

  <script async src="{{ asset('js/laralytics.min.js') }}"></script>

And finally add this line in your view with this, (*10)

  <script type="text/javascript">
    laralytics.init();
  </script>

Or add it in a js extern file, (*11)

  laralytics.init();

If you want to config you can specify those parameters, (*12)

  laralytics.init({
    API : your route where you want to collect your data,
    Version : If you want to know with A/B testing on which page you are,
    Limit : To set a limit when you want to send your data if set to 0 the data will be send when the user close his tab/browser or refresh the page
  });

The Versions

18/04 2016

dev-master

9999999-dev https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

18/04 2016

v1.0.0-beta.24

1.0.0.0-beta24 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

18/04 2016

v1.0.0-beta.23

1.0.0.0-beta23 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

14/04 2016

v1.0.0-beta.22

1.0.0.0-beta22 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

14/04 2016

v1.0.0-beta.21

1.0.0.0-beta21 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

07/03 2016

v1.0.0-beta.20

1.0.0.0-beta20 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

07/03 2016

v1.0.0-beta.19

1.0.0.0-beta19 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

07/03 2016

v1.0.0-beta.18

1.0.0.0-beta18 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

07/03 2016

v1.0.0-beta.17

1.0.0.0-beta17 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

07/03 2016

v1.0.0-beta.16

1.0.0.0-beta16 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

07/03 2016

v1.0.0-beta.15

1.0.0.0-beta15 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

09/02 2016

v1.0.0-beta.14

1.0.0.0-beta14 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

09/02 2016

v1.0.0-beta.13

1.0.0.0-beta13 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

07/01 2016

v1.0.0-beta.11

1.0.0.0-beta11 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

07/01 2016

v1.0.0-beta.12

1.0.0.0-beta12 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

02/10 2015

v1.0.0-beta.10

1.0.0.0-beta10 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

01/10 2015

v1.0.0-beta.9

1.0.0.0-beta9 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

21/09 2015

v1.0.0-beta.8

1.0.0.0-beta8 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

21/09 2015

v1.0.0-beta.7

1.0.0.0-beta7 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

08/09 2015

v1.0.0-beta.5

1.0.0.0-beta5 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

08/09 2015

v1.0.0-beta.6

1.0.0.0-beta6 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

03/09 2015

v1.0.0-beta.4

1.0.0.0-beta4 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

24/08 2015

dev-analysis-XVo7Vq

dev-analysis-XVo7Vq https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

24/08 2015

v1.0.0-beta.2

1.0.0.0-beta2 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

24/08 2015

v1.0.0-beta.3

1.0.0.0-beta3 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

12/08 2015

v1.0.0-beta.1

1.0.0.0-beta1 https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5

12/08 2015

dev-analysis-z9x4mq

dev-analysis-z9x4mq https://github.com/bsharp/laralytics

A simple analytics tool for Laravel

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gaetan Boedec

laravel analytics laravel5