formundzeichen / contao-cookie-consent-bundle
Responsive cookie consent plugin for Contao. The plugin provides different cookie privacy settings for the visitor. Google Analytics is only loaded when the visitor agrees to enable statistics. The plugin supports OnePages - no need to reload page after setting privacy settings. Installation instruc
Installs: 1 382
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 1
Type:contao-bundle
Requires
- php: ^5.6 || ^7.0 || ^8.0
- contao/core-bundle: ^4.8
Requires (Dev)
- contao/manager-plugin: ^2.0
- doctrine/doctrine-cache-bundle: ^1.3
- friendsofphp/php-cs-fixer: ^2.12
- php-http/guzzle6-adapter: ^1.1
- php-http/message-factory: ^1.0.2
- phpunit/phpunit: ^5.7.26
- symfony/phpunit-bridge: ^3.2
Conflicts
- codefog/contao-cookiebar: *
- contao/core: *
- contao/manager-plugin: <2.0 || >=3.0
README
Responsive Cookie Plugin für Contao. Dieses Plugin ermöglicht es dem Besucher zwischen verschiedenen Datenschutzeinstellungen zu wählen. Google Analytics wird nur geladen, wenn der Besucher Statistiken erlaubt. OnePage Support - die Website muss nicht neu geladen werden, nachdem die Datenschutzeinstellungen gespeichert wurden.
Responsive cookie consent plugin for Contao. The plugin provides different privacy settings for the visitor. Google Analytics is only loaded when the visitor agrees to enable statistics. The plugin supports OnePages - no need to reload page after setting privacy settings.
System Requirements
- PHP >= 5.6 / >= 7.0
- contao/core-bundle >= 4.8
Installation
- Install plugin with Contao-Manager
- Login to Contao backend with an admin account (/contao)
- Go to System > Cookies
- Click template import button and accept override notice
If you want to use Google Analytics
- Edit active Page Layout under Layout > Themes > Page Layouts
- Check JavaScript > Analytics templates > Google Analytics
- Go to System > templates
- Edit analytics_google.html5
- Set value $GoogleAnalyticsId to your Google Analytics tracking id
Settings
To change template, texts and links of the popup go to Settings > Cookie popup settings in the Contao backend