=== JPG Cookie ===
Contributors: JPGotye
Tags: cookies, consent, privacy, analytics, gdpr
Requires at least: 6.5
Tested up to: 7.1
Stable tag: 1.5.5
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Configurable cookie consent banner with optional Google Analytics 4, consent controls, and multilingual default text.

== Description ==

JPG Cookie displays a consent banner with Accept and Reject actions, a cookie policy dialog or page, and a settings button to change the decision later. The plugin can optionally load Google Analytics 4 after consent.

* Optional GA4 integration; enter your own GA4 Measurement ID.
* Built-in default banner translations for Czech, Slovak, English, German, Spanish, French, Italian, and Polish.
* Custom text is not machine-translated.
* Configurable appearance and live admin preview.
* Optional, **off by default**, public author credit link to jpgweb.cz.

**Important:** JPG Cookie does not automatically block analytics or marketing scripts inserted by other plugins, themes, or tag managers. Remove or configure those separately. The plugin does not guarantee legal compliance. Review your cookie policy and obtain legal advice as appropriate.

**Third-party service:** When GA4 is enabled and a visitor accepts analytics cookies, the plugin loads Google's `gtag.js` script from `www.googletagmanager.com` and sends analytics events to Google. No GA4 script is loaded by this plugin before acceptance. Review Google's privacy documentation and applicable terms before enabling the integration.

== External services ==

**Google Analytics 4 (Google LLC)** is optional. The plugin does not connect to Google Analytics unless the site administrator configures a valid GA4 Measurement ID and the visitor accepts analytics cookies. After acceptance, the visitor's browser downloads the Google tag JavaScript library from `https://www.googletagmanager.com/gtag/js` and sends measurement data to Google's analytics infrastructure. This can include the visitor's IP address, browser and device information, page URL, referrer, and interaction/measurement events, as processed by Google. The GA4 Measurement ID is included in the script request. Google may use cookies and similar technologies for analytics as described in its documentation. If the visitor rejects analytics cookies, this plugin does not load the Google tag library or send GA4 events. Other plugins or themes may independently send data to Google and are not controlled by JPG Cookie.

Google Analytics Terms of Service: https://marketingplatform.google.com/about/analytics/terms/us/
Google Privacy Policy: https://policies.google.com/privacy
Google Analytics data safeguards: https://support.google.com/analytics/answer/6004245

The optional author credit is a normal hyperlink to `https://www.jpgweb.cz/` and is disabled by default. JPG Cookie does not send any data to this site automatically. Clicking the link navigates to the external website.

== Source code ==

The complete human-readable JavaScript source code is included in `assets/front.js` and `assets/admin.js`. No build step, compilation, or minification is required to reproduce these files. The plugin includes no bundled third-party JavaScript libraries.

== Installation ==

1. Upload the ZIP through Plugins > Add New > Upload Plugin.
2. Activate JPG Cookie.
3. Configure it under Settings > JPG Cookie.
4. Verify consent behavior in a private browser window and review any existing tracking scripts.

== Frequently Asked Questions ==

= Does this block every tracking script? =
No. It controls only its own optional GA4 loader.

= Can visitors reject analytics? =
Yes. Visitors can reject analytics and later change their choice.

= Is the author link required? =
No. It is disabled by default and only shown after explicit opt-in by the site administrator.

== Changelog ==

= 1.5.5 =
* Make frontend JavaScript source human-readable and document its source availability.
* Correct the WordPress.org contributor username.
* Document the optional Google Analytics external service and its data transfers.


= 1.5.4 =
* Align WordPress.org readme metadata with the tested WordPress 7.1 series.
* Set the minimum PHP requirement to 8.1; runtime syntax checks were performed on PHP 8.4 only.
* Preserve the optional background blur and voluntary author credit.


= 1.5.1 =
* Public distribution metadata and readme.
* Author credit requires explicit opt-in; previously saved settings do not enable it.
* Disable website-lock overlay, including on upgrades.
* Restrict policy URLs to HTTP(S).
* Avoid flushing the entire WordPress object cache.
* Correct the version shown in the admin UI.

