Cookie consent (GDPR)

Ask for consent the right way, without slowing your site

A cookie banner that blocks trackers until visitors accept, preferences by category, Google Consent Mode v2, a consent log and a cookie policy that stays up to date.

6 banner layouts Automatic blocking Consent Mode v2 Consent log Cookie policy

At a glance

Section 1

What EnCookies does

EnCookies asks for consent the way the GDPR and the ePrivacy rules require: nothing that tracks visitors runs until they accept it, rejecting is as easy as accepting, and every choice is recorded.

Free plugin

  • Banner with 6 layouts and preferences by category
  • Automatic blocking of 13 services
  • Google Consent Mode v2
  • Consent log with CSV export
  • Cookie policy shortcode

With Enwebs Suite Pro

  • Cookie scanner (server and browser)
  • Rules by country: GDPR, CCPA, LGPD
  • Consent statistics
  • More designs and translated texts (WPML, Polylang)
Section 2

Installation and first steps

  1. Install and activate EnCookies.
  2. Open EnCookies › Banner, pick a layout and your texts.
  3. Review the categories in Categories & cookies and turn off the ones you don't use.
  4. Check Scripts & blocking: the services you use are blocked until consent.
  5. Create the cookie policy page in Cookie policy with one click.
Section 4

Categories and cookies

Necessary, preferences, statistics and marketing — each with its description and the list of its cookies. Rename them or turn off the ones your site doesn't use. When consent for a category is withdrawn, its cookies are deleted.

Section 5

Automatic blocking

Scripts and embeds of Google Analytics, Google Tag Manager, Google Ads, Meta Pixel, TikTok, LinkedIn, Pinterest, Hotjar, Microsoft Clarity, Matomo, YouTube, Vimeo, Google Maps wait for consent. Videos and maps show a message with an Accept and show button.

  • Add your own patterns for other services.
  • Paste tracking codes per category so they only run after consent.
  • Works with page caching.
Section 6

Google Consent Mode v2

Default consent states are set before any Google tag and updated with each choice, in advanced or basic mode, with ad data redaction. EnCookies also respects Global Privacy Control.

Section 7

Consent log

Each choice is saved with a consent ID, date, categories, policy version and an anonymized IP. Filter, search and export to CSV — the proof of consent the GDPR asks for. Old entries are deleted automatically.

Section 8

Cookie policy

ShortcodeWhat it shows
[encookies_policy]Your categories and cookies, always up to date.
[encookies_settings]A link that reopens the preferences.

Any link to #encookies also reopens the preferences. When your policy changes, raise its version and everyone is asked again.

Section 9

Pro: scanner, geo and statistics Pro

Cookie scanner

Finds the cookies and scripts of your pages, first on the server and then in a real browser visit, recognizes known services and lets you add or block them. A scheduled scan emails you what is new.

Rules by country

Show each visitor what their law asks for: ask first (GDPR) in the EU, EEA, UK and Switzerland, an opt-out notice with "Do Not Sell or Share" (CCPA) in the United States, LGPD in Brazil, or nothing where it isn't needed.

Statistics

Accept and reject rates per category, page and country.

More designs and languages

Glass, gradient, soft and high contrast themes, compact pill and side panel layouts, and the banner texts translated with WPML or Polylang.

EnCookies Pro features

  • Cookie scanner with scheduled scans
  • Rules by country (GDPR, CCPA, LGPD)
  • Consent statistics
  • More designs and translations

One license unlocks the Pro features of every Enwebs plugin. The free plugin keeps working without it.

Section 10

For developers

JavaScript API:

window.EnCookies.has('statistics');   // true or false
window.EnCookies.open();             // show the preferences
document.addEventListener('encookies:consent', function (e) {
    console.log(e.detail);             // the categories accepted
});
HookTypeUse
encookies_layoutsfilterAdd banner layouts.
encookies_themesfilterAdd banner themes.
encookies_front_datafilterChange the data sent to the banner script.