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)
- Silverstripe CMS ^4.0
The configuration of the module is done using the config.yml.
To set the Google tag manager id use TagID
The cookies are divided into 4 different types
- Strictly (Like use login cookies)
- Performance (Like Google Analytics)
- Technical (Like Drift)
- Targeting (Like AdWords, Facebook pixel etc.)
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'
COMMING
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.