Giter Site home page Giter Site logo

kristiandaugaard / silverstripe-gdpr-cookies Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lundco/silverstripe-gdpr-cookies

0.0 1.0 0.0 48 KB

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

License: MIT License

PHP 18.90% JavaScript 19.87% CSS 23.81% Scheme 37.42%

silverstripe-gdpr-cookies's Introduction

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 a run dev/build?flush=1 on your project.

Display cookiemessage & privacycenter

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

Requirements

  • Silverstripe CMS 4.*

Configuration

The configuration of the module is done using the mysite 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:

Lundco\SilverstripeGDPRCookies\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

  • Improve mobile view 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.

silverstripe-gdpr-cookies's People

Watchers

Kristian Daugaard avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.