Linux 软件免费装
Banner图

Nymbl Cookie Sentinel

开发者 sminec
更新时间 2026年9月22日 21:35
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

cookie privacy consent cookie-notice 152-fz

下载

1.0.1

详情介绍:

Nymbl Cookie Sentinel is a lightweight plugin (no jQuery, no external assets of its own) for managing visitor consent to cookie usage. The plugin itself sends nothing to the plugin developer: the only external services that can be contacted are the counters and analytics you connect yourself in the "Integrations" tab, and only after the visitor has given consent. See the "External services" section for the exact list of services, the data they receive and links to their terms and privacy policies. The plugin is a tool for collecting, storing and re-requesting visitor consent. It does not by itself guarantee legal compliance: review your cookie list, policy pages and processing rules with your legal advisor. Features Consent storage: localStorage (nymcs_consent) + fallback cookie for 12 months. Security note: the plugin never accepts, stores or outputs arbitrary CSS/JS/PHP entered by users. The Integrations tab is a form: you pick a supported service and enter its ID (counter number, Measurement ID, Pixel ID…), every value is validated against a strict whitelist format, and the counter snippet is generated by the plugin programmatically.

安装:

  1. Upload the nymbl-cookie-sentinel folder to /wp-content/plugins/.
  2. Activate the plugin in the "Plugins" section.
  3. Go to "Cookie Consent > General Settings" and set the cookie policy and privacy policy page URLs.
  4. In the "Cookie" tab, apply templates for services used by the site.
  5. Connect analytics in the "Integrations" tab: pick the service, enter its ID (no code needed). Custom scripts can be wrapped manually in your theme: <script type="text/plain" data-cookiecategory="statistics" src="..."></script>

常见问题:

Does the plugin send any data to third-party services?

Not by itself. The plugin has no cloud service, no telemetry and no update server: it does not contact the plugin developer or anyone else. Only the counters and analytics that you enable yourself in the "Integrations" tab contact their services, and only after the visitor has consented to the category assigned to that integration. Before consent the snippet is printed blocked (type="text/plain") and never executed, so no request is made to the service's domain. The exact services, the data they receive and links to their terms and privacy policies are listed in the "External services" section.

Does the plugin work with caching plugins?

Yes. The markup is rendered hidden, and visibility is managed by client-side JavaScript, so page caching does not break the consent logic. In addition, the plugin automatically purges the page cache whenever settings, the cookie registry, integrations or the consent version change. Supported out of the box: LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache, WP Fastest Cache, Autoptimize, Hummingbird, Breeze, SiteGround Optimizer and Cache Enabler. For any other caching layer (CDN, server-side Varnish/nginx, Cloudflare) hook into the nymcs_clear_cache action or purge it on the hosting side.

How to connect a Yandex.Metrika counter?

Open the "Integrations" tab, select "Yandex.Metrika" and enter the counter number from your Metrika account settings (e.g. 12345678). The plugin generates the official counter code itself, prints it blocked (type="text/plain") and activates it after the visitor consents to the Statistics category. Alternatively, replace type="text/javascript" with type="text/plain" in your theme code and add the data-cookiecategory="statistics" attribute.

Can I paste custom JavaScript/CSS into the plugin?

No. Following the WordPress.org plugin guidelines, the plugin does not accept, store or output arbitrary user code. The "Integrations" tab is a form: choose a supported service (Yandex.Metrika, GA4, GTM, VK Pixel, Top.Mail.ru, Facebook Pixel, Matomo) and enter its ID — the counter snippet is generated programmatically from validated values. For scripts outside this list, wrap them in your own theme/plugin code with type="text/plain" and data-cookiecategory="..."; the plugin activates such tags after consent as well.

Which services are supported in the Integrations tab?

Yandex.Metrika (with optional Webvisor), Google Analytics 4 (gtag.js), Google Tag Manager, VK Pixel (VK Ads), Top.Mail.ru, Facebook Pixel and self-hosted Matomo. Each integration accepts only the service ID, validated by a strict format (regex / integer / URL whitelist).

How to put the policy link inside the banner text?

Use placeholders in the banner description (General Settings): {policy} is replaced with the cookie policy link and {privacy} with the privacy policy link — right inside the sentence, e.g. "Learn more: {policy}." If a page URL is not set, the placeholder is shown as plain text so the sentence stays readable. If the description contains no placeholders, the links are appended after the text automatically.

更新日志:

1.0.1 1.0.0