JPG Cookie

설명

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.

설치

  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.

FAQ

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.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“JPG Cookie”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“JPG Cookie”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “JPG Cookie”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

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.