Skip to content

Php Cookie checker for Analytics and Tawk.To (GDPR Compliance)

License

Notifications You must be signed in to change notification settings

DSMDesign/gdpr-cookie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSM Cookie 2.3

Software License Scrutinizer Code Quality Build Status

PHP cookie checker for Google Analytics, Tawk.To, Smartsupp and HotJar (GDPR Compliance)

This small class will add a cookie toggle window to any website.

To add this functionality within a site simply follow the below steps :

  1. Upload the entire dsmCookie folder into the public_html (or similar) root folder of your website.

  2. If done correctly you will then be able to visit [domain]/dsmCookie/install-check.txt and see the "Installed correctly" message.

  3. Then add the following code at the very end / just before the closing body tag of each page:

<?php require_once $_SERVER['DOCUMENT_ROOT'].'/dsmCookie/output/scwCookie.php'; ?>
  1. Rename config.example.ini to config.ini

  2. Then open config.ini in your chosen editor and set the values to match your site configuration

Thats it, a window will now display in the footer of your site allowing people to manage the cookies you use.

Remember to remove any previous cookie code, this will handle that from now on

Demo

A live example is available here: https://dsmdesign.co.uk

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

License

The MIT License (MIT). Please see License File for more information.