Download the PHP package ngiraud/laravel-cookies-analytics without Composer
On this page you can find all versions of the php package ngiraud/laravel-cookies-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ngiraud/laravel-cookies-analytics
More information about ngiraud/laravel-cookies-analytics
Files in ngiraud/laravel-cookies-analytics
Package laravel-cookies-analytics
Short Description Add Google Analytics and cookie consent to your application.
License MIT
Homepage https://github.com/ngiraud/laravel-cookies-analytics
Informations about the package laravel-cookies-analytics
Add Google Analytics and CookieConsent to your application.
Installation
-
Install the package via composer:
- Install the CookieConsent plugin
or
Usage
-
You can activate/deactivate cookies and google analytics by settings environment variables in your
.env
file : -
Add the view to the top of your
<head>
section : -
Add the css for the CookieConsent plugin in your css file :
-
And these lines in your vuejs index file :
- If you want to customize the popup and the message in the config file, you can publish and edit the config file :
Don't forget to generate and include your css & js files.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Nicolas Giraud
- All Contributors
License
The MIT License (MIT). Please see License File for more information.