{"repo":"andreaselia/laravel-analytics","free":true,"listed":false,"github":"https://github.com/andreaselia/laravel-analytics","clone":"git clone https://github.com/andreaselia/laravel-analytics.git","description":"Analytics for the Laravel framework.","language":"PHP","stars":198,"topics":["laravel","analytics","middleware","package","dashboard","laravel-analytics","php","self-hosted"],"license":"MIT","category":"analytics","readme_excerpt":"Laravel Analytics Easily collect page view analytics with a beautifully simple to use dashboard. Installation Install the package: Publish the config file and assets: Don't forget to run the migrations: You can add the page view middleware to a specific route group, e.g. web.php like so: Or add the page view to all middlewares/on an application level like so: Configuration Disabling tracking You can disable tracking by setting the environment variable ANALYTICS ENABLED or the enabled property in the analytics.php config file to false . Excluding routes You can exclude certain routes from being tracked by adding them to the exclude array in the analytics.php config file. Ignore robots You can ignore requests from robots by setting the ignoreRobots property in the analytics.php config file. Ignore specific IP addresses You can ignore requests from specific IP addresses by adding them to the ignoreIps array in the analytics.php config file. Masking routes You can mask certain routes from being tracked by adding them to the mask array in the analytics.php config file. This is useful if you want to track the same route with different parameters, e.g. /users/1 and /users/2 will be tracked as /users/∗︎ . Ignoring certain HTTP verbs/methods You can ignore the tracking of some methods by adding them to the analytics.ignoreMethods config option. For example, if you don't want to track POST requests, you can configure it like so: Changing how session id is determined By default, session","default_branch":null,"files":null,"tree":[],"storefront":"/r/andreaselia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/andreaselia/laravel-analytics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}