Select one or more tags, then press “Search Plugins”

Find Plugin with any / all of the selected criteria
Search Plugin

Enkrat Cookie Wordpress Plugin - Rating, Reviews, Demo & Download

Enkrat Cookie Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

Enkrat Cookie shows a cookie banner and makes sure analytics, advertising and embedded content do not load until the visitor allows them.

What sets it apart:

  • The law of every country, without GeoIP. Consent, a notice or no banner depending on the visitor’s country, detected from the device time zone right in the browser: no geolocation service, no IP lookup, and full-page caching keeps working.
  • Russian 152-FZ as well as GDPR. Yandex Metrica, VK Ads, Rutube, VK Video, Dzen and Yandex Maps are blocked just like Google services, and the banner can link to the separate consent document required in Russia since 1 September 2025.
  • Blocking that works with page caching. The server rewrites tracker tags the same way for every visitor, a small guard catches scripts inserted later, and the decision is made in the browser.
  • No account, no cloud, no limits. Everything runs inside WordPress: no sign-up, no page view quotas, no paid tier. The consent log stays in your database and stores no IP addresses.
  • Page builders. In the Bricks, Elementor, Divi, Oxygen and Breakdance editors the page shows no banner and a single settings button.

Three modes:

  • Consent by category. Visitors choose what to allow: necessary (always on), analytics, advertising, external services. Scripts of a category do not run until it is allowed.
  • Notice only. A banner with a single “Got it” button, nothing is blocked.
  • By country. Consent, a notice or no banner at all, depending on the visitor’s country. Out of the box the plugin follows the law of every country: consent where the law requires it (the EU and EEA, the UK, Russia, Belarus, Kazakhstan, Turkey, Brazil, China and about 115 more), a notice where informing visitors is enough (the USA, Japan, Australia and others), no banner where there is no personal data law. The lists are updated with the plugin, and laws that are adopted but not yet in force (India, Sri Lanka, Bangladesh, Paraguay) switch to consent on their effective date. Exceptions override the law: pick a country from the list and its mode, for example a notice for Uzbekistan and no banner for India.

What is blocked until consent:

  • Tracking codes set up in the plugin: Google Analytics 4, Google Tag Manager, Yandex Metrica, VK Ads / Top.Mail.Ru.
  • Known services added by the theme or other plugins (autoblocking): Google Analytics, Google Tag Manager, Google Ads, Meta Pixel, TikTok Pixel, Microsoft Advertising, LinkedIn Insight Tag, Pinterest Tag, X Pixel, Seznam Sklik, Hotjar, Microsoft Clarity, Yandex Metrica, Yandex Advertising Network, VK Ads, LiveInternet, Calltouch, Roistat.
  • Videos and maps (YouTube, Vimeo, VK Video, Rutube, Dzen, Yandex Maps, Google Maps): a placeholder with a button is shown instead.

How blocking works:

  1. The server rewrites the page HTML: tracker scripts get type="text/plain" and their address moves to data-enkrat-src. The HTML is the same for every visitor, so the plugin works with full-page caching.
  2. A small guard at the top of <head> intercepts scripts that trackers insert dynamically.
  3. After consent the scripts run in their original order. When consent is withdrawn, the page reloads and the services’ cookies on the site domain are removed.

Speed:

  • Pages without third-party trackers are not parsed at all: a fast substring check decides whether rewriting is needed.
  • Minified assets: about 12 KB of JavaScript for the banner and 3 KB for the inline guard, before gzip. Rules by country for the whole world add about 2 KB (1.3 KB gzipped) to the page.
  • For a visitor who has already allowed everything, the guard does not touch the page.

Design:

  • The banner UI lives in Shadow DOM: theme styles do not affect it, and its styles do not leak into the site.
  • Card on the left or right, or a bar at the bottom; light, dark or system theme; accent color, corner radius, font.
  • “Accept all” and “Necessary only” buttons are equal by default.
  • Floating button to change the choice: a round icon or a small text tab at the bottom edge with your own caption. It hides itself on pages that already have a “Cookie settings” button or link, so it does not compete with chat and callback widgets in the corner.
  • Optional: the page is dimmed and does not scroll until the visitor chooses.
  • The same round button can live in the footer: [enkrat_cookie_button], or [enkrat_cookie_button text="Cookie settings"] with a caption.
  • Keyboard navigation, mobile layout.
  • Page builders: in the editor of Bricks, Elementor, Divi, Oxygen, Breakdance and other builders the page shows only the cookie settings button, once, without the banner, blocking and tracking codes.

Links under the banner: the privacy policy, the cookie policy and a separate consent to personal data processing (in Russia consent must be a separate document since 1 September 2025).

Cookie table: put the [enkrat_cookie_table] shortcode on the cookie policy page. The table lists the cookies of the tracking codes set up in the plugin, of the services found on the site and of your own list, grouped by category, with lifetimes and purposes. The plugin also shows which cookies your browser received from the site, so unknown ones can be added to the list in one click.

Consent log stores the date, the decision, the categories, the settings revision and the page address without the query string. IP address, User-Agent and visitor ID are not stored. The log can be exported to CSV.

Translations come from translate.wordpress.org. Banner texts you have not changed follow the site language automatically, which also works with WPML and Polylang.

Enkrat Cookie is made by ENKRAT, a web development studio.

External services

Enkrat Cookie connects to third-party services only when you set them up, and to its developer’s server only as described below.

Tracking codes you set up. If you enter a Google Analytics 4, Google Tag Manager, Yandex Metrica or VK Ads ID on the Blocking tab, the plugin outputs the official tracking code of that service. In consent mode the visitor’s browser loads it only after the visitor allows its category, in “Notice only” mode right away. The service then receives what its tracking code collects: the page address, the visitor’s IP address, browser details and its own cookies.

Built-in list of known services. To recognize trackers and embeds on your pages, the plugin contains the addresses and cookie names of known services, for example connect.facebook.net for the Meta Pixel, analytics.tiktok.com or youtube.com/embed. The plugin never connects to these addresses and sends them nothing: it only compares the tags of your pages with the list and holds the matching ones back until the visitor allows their category. When the visitor allows it, the visitor’s browser loads the tracker, video or map that you or your theme added to the site, as it would without the plugin.

Usage statistics, off by default. Only if you turn them on in Settings Enkrat Cookie Advanced, the plugin sends the site address, a random installation ID, the plugin and WordPress versions and the event (active, activated, deactivated, deleted) to https://enkrat.com/updates/stats/ping.php once a day and when it is activated, deactivated or deleted. Data of visitors and users is never sent. Service provider: ENKRAT, privacy policy.

For developers

Manual markup:

<script type="text/plain" data-enkrat-category="analytics">/* code */</script>
<script type="text/plain" data-enkrat-category="marketing" data-enkrat-src="https://example.com/pixel.js" async></script>
<iframe data-enkrat-category="external" data-enkrat-src="https://www.youtube.com/embed/ID"></iframe>

The data-enkrat-skip attribute excludes a tag from autoblocking.

Shortcodes and template functions:

[enkrat_cookie_button]      <?php enkrat_cookie_settings_button(); ?>  round “Cookie settings” button
[enkrat_cookie_settings]    <?php enkrat_cookie_settings_link(); ?>    “Cookie settings” text link
[enkrat_cookie_table]                                                cookie table for the cookie policy page

Any element with the enkrat-cookie-open class or the data-enkrat-cookie="open" attribute opens the cookie settings.

A script added with wp_enqueue_script:

add_filter('enkrat_cookie_handles', fn($map) => $map + ['my-handle' => 'analytics']);

Skip page rewriting for some requests:

add_filter('enkrat_cookie_skip_blocking', fn($skip) => $skip || is_page('landing'));

JavaScript API:

EnkratCookie.mode;               // 'consent' | 'notice' | 'off'
EnkratCookie.has('analytics');
EnkratCookie.get();
EnkratCookie.open();
EnkratCookie.acceptCategory('external');
EnkratCookie.on(state => console.log(state));
document.addEventListener('enkrat-cookie:change', e => console.log(e.detail));

The <html> element gets data-enkrat-mode="consent|notice|off", data-enkrat-analytics="1|0" and similar attributes. With rules by country, html[data-enkrat-mode="off"] .enkrat-cookie-link { display: none; } hides the footer link where no banner is shown. The enkrat_cookie_update event is pushed to dataLayer when the choice changes. Google Consent Mode v2 and the WP Consent API are supported.

The minified files assets/js/*.min.js and assets/css/*.min.css are built with terser and Lightning CSS from the readable files next to them, which are included in the plugin. With SCRIPT_DEBUG enabled the plugin loads the readable files.

Legal notice

The plugin helps collect and document consent, but it does not replace a privacy policy or legal advice. In the EU, consent for non-essential cookies follows from the ePrivacy Directive and the GDPR. In Russia, there is no separate cookie law: consent is required when the data collected by analytics and advertising is personal data processed on the basis of consent (Art. 9 of Federal Law 152-FZ).

Screenshots

  1. The banner: “Necessary only” and “Accept all” are equal. Videos and maps wait behind placeholders until the visitor allows them.

    The banner: “Necessary only” and “Accept all” are equal. Videos and maps wait behind placeholders until the visitor allows them.

  2. The settings window: consent by category, with the services used in each category.

    The settings window: consent by category, with the services used in each category.

  3. A bar at the bottom in the dark theme with your own accent color.

    A bar at the bottom in the dark theme with your own accent color.

  4. The cookie table for the cookie policy page, built by the <code>[enkrat_cookie_table]</code> shortcode.

    The cookie table for the cookie policy page, built by the [enkrat_cookie_table] shortcode.

  5. Three modes: consent by category, notice only, or by country.

    Three modes: consent by category, notice only, or by country.

  6. Rules by country: consent, a notice or no banner following each country’s law, plus your own exceptions.

    Rules by country: consent, a notice or no banner following each country’s law, plus your own exceptions.

  7. Appearance: a card or a bar, light, dark or system theme, accent color, corner radius and font.

    Appearance: a card or a bar, light, dark or system theme, accent color, corner radius and font.

  8. Tracking codes: Yandex Metrica, Google Analytics 4, Google Tag Manager and VK Ads run only after consent.

    Tracking codes: Yandex Metrica, Google Analytics 4, Google Tag Manager and VK Ads run only after consent.

  9. The consent log with statistics for the last 30 days.

    The consent log with statistics for the last 30 days.


Reviews & Comments