
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.
At a glance
Banner your way
Six layouts, light or dark, your color and every text, with a live preview.
Read moreNothing runs before consent
Analytics, pixels, YouTube and Maps wait until the visitor accepts their category.
Read moreGoogle Consent Mode v2
Default states before any Google tag, updated with each choice.
Read morePro: scanner and geo rules
Find every cookie and show each country the banner its law asks for.
Read moreWhat 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)
Installation and first steps
- Install and activate EnCookies.
- Open EnCookies › Banner, pick a layout and your texts.
- Review the categories in Categories & cookies and turn off the ones you don't use.
- Check Scripts & blocking: the services you use are blocked until consent.
- Create the cookie policy page in Cookie policy with one click.
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.
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.
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.
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.
Cookie policy
| Shortcode | What 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.
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.
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
});| Hook | Type | Use |
|---|---|---|
| encookies_layouts | filter | Add banner layouts. |
| encookies_themes | filter | Add banner themes. |
| encookies_front_data | filter | Change the data sent to the banner script. |