=== JuiceNet GDPR === Contributors: rugbycap Tags: gdpr, cookie, consent, privacy policy, cookie policy Requires at least: 5.0 Tested up to: 7.1 Requires PHP: 7.4 Stable tag: 1.2.6 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Cookie consent banner, prior blocking of non-essential services, consent log and ready-made privacy and cookie policy pages. == Description == * Cookie banner with consent by category (statistics, marketing, embedded content) and by single service, equal-weight Accept and Decline buttons, accessible preferences panel. * Services ticked in the admin page are blocked until consent: scripts and iframes in the page and those added later by other scripts (for example Google Tag Manager). Works with page cache. Sends Google Consent Mode v2 signals. * Consent log with search and CSV export, as proof of consent. * Privacy and cookie policy pages in Italian and English, filled in from the plugin settings, with the cookie table and the list of third-party providers. * Colours, layout and font from the admin page; every detail can be styled from the theme with CSS variables (see docs/DESIGN.md and the "Style for designers" admin page). Compatibility: WordPress 5.0 or later (tested up to 7.1), PHP 7.4 or later (tested on PHP 7.4 to 8.6, no warnings with E_ALL). = Privacy and external services = The plugin does not send any data to its authors or to other services. * **Consent log.** When a visitor makes a choice on the banner, the plugin stores in a table of the site's own database: date and time, the choice and the accepted services, a random consent identifier, the policy version, the anonymised IP address, the browser and the page. Entries are deleted automatically after 24 months (filter `juicenet_gdpr_consent_log_retention_months`). The purpose is to prove consent, as required by the GDPR. * **Cookies set by the plugin.** `cc_cookie` (technical, 365 days) remembers the visitor's choice and the consent identifier. * **Google Analytics.** Only if a Google Analytics ID is entered in the admin page, and only after the visitor accepts statistics, the plugin loads `gtag.js` from Google (www.googletagmanager.com) and sends the page view to Google Analytics. Google's privacy policy: https://policies.google.com/privacy and terms: https://policies.google.com/terms * The services ticked in the admin page (for example YouTube or Meta Pixel) are added to the site by the site owner, not by the plugin; the plugin only blocks them until consent. = Source code = The bundled cookie banner library is distributed compiled (`vendor/vanilla-cookieconsent/cookieconsent.umd.js`); its readable source code is included in `vendor/vanilla-cookieconsent/source/` and available at https://github.com/orestbida/cookieconsent (tag v3.3.0). Build instructions are in `vendor/vanilla-cookieconsent/VERSION.txt`. == Installation == 1. Upload the `juicenet-gdpr` folder to `/wp-content/plugins/` and activate the plugin. 2. In the JuiceNet GDPR page fill in the site data, tick the services the site uses and choose the privacy and cookie policy pages. 3. Put the shortcodes `[JGDPR_PRIVACY_POLICY]` and `[JGDPR_COOKIE_POLICY]` in those pages. 4. Tick "Show banner" and check the result with "Preview the banner on the site". == Frequently Asked Questions == = How does the plugin block a service before consent? = On the public pages it rewrites the HTML before it is sent (output buffering on `template_redirect`): the scripts and iframes of the ticked services are turned into inactive placeholders, which are reactivated in the browser only after consent. This is needed because the scripts are usually added by the theme, page builders or other plugins, not through WordPress hooks. A small script in the page also holds back the services that other scripts add later. Pages served by a page cache stay blocked for every visitor. = Does it block services that are not ticked? = No. Tick in the admin page every service the site uses. The option "External iframes" can block every iframe from another site. == Upgrade Notice == = 1.2.6 = Lighter separator lines in the cookie banner and preferences panel, and the "services have changed" message on its own line. = 1.2.5 = New optional colours for description text and buttons (also on hover), and a lighter cookie preferences panel on dark banners. = 1.2.4 = New service Revive Adserver: ads and their cookie are blocked until Marketing consent. Tick it in the plugin page if the site shows ads from a Revive Adserver. = 1.2.3 = Google Maps is shown after consent also when its script is in the page footer (Divi Map module) or when the map is written by hand in the page. No action needed. = 1.2.2 = The Divi Map module shows Google Maps after consent, banner buttons follow the site language, and privacy or cookie pages written by the site can be kept as they are. No action needed. = 1.2.1 = Updated policy texts: legal references for cookies, safeguards for transfers to the United States and all Google Analytics cookies in the cookie table. No action needed. = 1.2.0 = New banner with consent by category and service, prior blocking, consent log and new policy texts. After updating, tick the services the site uses in the plugin page. Visitors will see the banner once more. == Credits == The cookie banner uses vanilla-cookieconsent 3.3.0 by Orest Bida (https://github.com/orestbida/cookieconsent), released under the MIT License. The library and its licence are in vendor/vanilla-cookieconsent/. == Changelog == = 1.2.6 = * Cookie banner and preferences panel: separator lines (header, footer, sections, buttons, tables) are a light tint of the text colour, so they adapt to light and dark banners. * The message shown when the services used by the site have changed is now on its own line, separated from the banner text. = 1.2.5 = * New optional colours in the plugin page: description text, button text, button background and button text on hover. Left empty, they stay automatic as before. * Cookie preferences: category blocks are a light tint of the text colour, so they adapt to light and dark banners; toggles and accordion arrows have a light knob also on dark banners. * Italian: the default banner title is now "Informativa". = 1.2.4 = * New service Revive Adserver (Marketing): the ads of any Revive Adserver (asynchronous JavaScript tag, JavaScript tag and iframe tag) and its OAID cookie are blocked until consent; ad spaces show the blocked content placeholder and ads appear as soon as Marketing is accepted, without reloading the page. = 1.2.3 = * Google Maps written by hand (e.g. in a Divi Code module, inline script using google.maps): the script waits for Google Maps to be ready after consent, and the #map_canvas element shows the placeholder before consent. * Blocked scripts printed in the footer after the banner (e.g. the Google Maps script of the Divi Map module) are now activated after consent: the banner starts when the page is complete. = 1.2.2 = * Divi Map module with Google Maps: placeholder before consent, and the map is shown as soon as Google Maps is accepted (Divi draws it only once, when the page loads). * Banner buttons and text follow the site language when they were left at the default text (they were saved in the language of the admin page). * New setting for the privacy and cookie pages: untick "Show the plugin text on this page" to keep a page written by the site; the plugin only links to it. = 1.2.1 = * Cookie policy: the categories are described in general terms; legal basis for cookies (Art. 122 of the Italian Privacy Code, Art. 6(1)(a) GDPR, Italian DPA cookie guidelines of 10 June 2021). * Privacy policy: transfers to the United States based on the EU-US Data Privacy Framework or standard contractual clauses. * Cookie table: _gid and _gat* listed with the other Google Analytics cookies. * "Last updated" date of the policies calculated for each site from the plugin texts and the policy settings. * Space between the end of the policy and the site footer (CSS variable --jg-policy-space-bottom). * Banner links are no longer always underlined: they are bold and underlined on hover. = 1.2.0 = * New cookie banner (vanilla-cookieconsent 3.3.0, replaces Osano cookieconsent) with consent by category and by service. * Prior blocking of the ticked services, also with page cache and for scripts added by other scripts; Google Consent Mode v2. * Consent log with admin page and CSV export. * New privacy and cookie policy texts (Italian and English) generated from the settings. * Design options in the admin page, "Style for designers" page and CSS variables for themes (docs/DESIGN.md). * Security hardening, PHP 8 compatibility, Italian translation. = 1.1.2 = * Bug fixes. = 1.1.1 = * Bug fixes. = 1.1.0 = * Accept / Decline banner based on Osano cookieconsent. = 1.0.3 = * Google reCAPTCHA description. = 1.0.2 = * Option to show or hide the banner. = 1.0.1 = * Bug fixes. = 1.0 = * First release.