Cookieman ========= |Crowdin| ! Warnings ! ------------ Expect some days until this is fixed: This documentation is still v1 and not proper for the current v2. Currently only the example theme ``bootstrap4-modal`` is v2-ready. Choose your branch: 8lts (TYPO3 8.7), 9lts (TYPO3 9.5), master (TYPO3 10.x). To try it: just run ``ddev start`` which will install a TYPO3 with example content and ``cookieman``. How it works ------------ It includes the HTML for a cookie confirmation modal on every page. It shows the modal when the cookie *CookieConsent* is not set yet. In the example templates it is not shown on the configured imprintPid and dataProtectionDeclarationPid (see TypoScript constants) - this is to follow the GDPR’s expectation that those pages shall be easily and directly accessible and should not interfere with a cookie consent banner. It is recommended to include a snippet like that on your data protection page to allow your users to adjust their cookie preferences: .. raw:: html
   <a href="" onclick="cookieman.show(); return false">
     Adjust your cookie preferences
   </a>
   
It saves the user’s choices as a comma-separated list of groups in the HTML cookie *CookieConsent*, e.g. “marketing,preferences”. Your tracking solutions shall then adhere to this setting by checking if their repective string (e.g. “marketing”) is contained in the cookie *CookieConsent*. You should also pay respect to the “Do-not-track” setting of your users which is sent as HTTP-Header ``DNT: 1`` and accessible in JavaScript via ``navigator.doNotTrack``. The example templates include a dynamic text block that show this browser setting. This can be done in Google Tagmanager or by dynamically including :: ) } # add my own custom tracking solution MyOwnTrackingPixel { inject ( .. container:: Here be dragons :: ) show { # each element here represents one line of information in the consent popup pixelphp { duration = 1 durationUnit = months type = pixel provider = My Website Inc. } } } } # reset existing groups groups > groups { # copy of default group ‘mandatory’ mandatory < temp.tx_cookieman.settings.groups.mandatory :: # my new group mygroup { trackingObjects { 0 = Matomo 1 = MyOwnTrackingPixel } } } } plugin.tx_cookieman._LOCAL_LANG { en { trackingobject.pixelphp = You can translate the name, but you do not have to. trackingobject.pixelphp.desc = My own tracking pixel does not really track you. It’s just here to cheer you up. group.mygroup = My group is my castle. } default < .en } .. |Crowdin| image:: https://badges.crowdin.net/typo3-extension-cookieman/localized.svg :target: https://crowdin.com/project/typo3-extension-cookieman