/silverstripe-gdpr-cookies

Silverstripe GDPR Cookies is a module which enables you to controle which cookies and external services should be loaded into the webpage.

Primary LanguagePHPMIT LicenseMIT

Silverstripe GDPR Cookies

Latest Stable Version License

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.

Installation

composer require lundco/silverstripe-gdpr-cookies

Alternatively simply download the zip file from github. After installation run dev/build?flush=1 on your project.

Display cookiemessage & privacycenter

To display cookiemessage include $CookiePopup on your .ss base template (Page.ss)

Requirements

  • Silverstripe CMS ^4.0

Configuration

The configuration of the module is done using the config.yml.

Setting google tag manager id

To set the Google tag manager id use TagID

Setting cookie list

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'

Setting up Google Tag Manager

COMMING

Translations

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.

Todo