Control which cookies/services gets loaded when user enters website, to make it GDPR compliant
Silverstripe GDPR Cookies is a module which enables you to controle which cookies and external services should be loaded into the webpage, and gives to website visitor control over what they want to be loaded to make the website GDPR compliant.
composer require lundco/silverstripe-gdpr-cookies
Alternatively simply download the zip file from github. After installation run dev/build?flush=1 on your project.
To display cookiemessage include
$CookiePopup on your .ss base template (Page.ss)
The configuration of the module is done using the config.yml.
To set the Google tag manager id use
The cookies are divided into 4 different types
So when done your config.yml should have something like this, where Cookiename is the name of the cookie, like Google Analytics:
PrivacyCenter: TagID: - 'GTM-XXXXXXX' StrictlyCookies: Â - 'Session cookies' PerformanceCookies: Â - 'Google Analytics' TechnicalCookies: Â - 'Interkom' TargetingCookies: Â - 'Facebook Pixel' Â - 'Google AdWords'
The plugin will be delivered with english as base language and a danish language file. If you create additional language files please feel free to share them with us. We will be happy to include them in the repository.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem