Title: NetCookies
Author: netchameleon
Published: <strong>November 24, 2026</strong>
Last modified: November 24, 2026

---

Search plugins

![](https://ps.w.org/netcookies/assets/banner-772x250.png?rev=3820243)

![](https://ps.w.org/netcookies/assets/icon-256x256.png?rev=3820243)

# NetCookies

 By [netchameleon](https://profiles.wordpress.org/netchameleon/)

[Download](https://downloads.wordpress.org/plugin/netcookies.1.0.9.zip)

 * [Details](https://wordpress.org/plugins/netcookies/#description)
 * [Reviews](https://wordpress.org/plugins/netcookies/#reviews)
 *  [Installation](https://wordpress.org/plugins/netcookies/#installation)
 * [Development](https://wordpress.org/plugins/netcookies/#developers)

 [Support](https://wordpress.org/support/plugin/netcookies/)

## Description

NetCookies asks your visitors before your site sets any optional cookies, and means
it. Analytics and advertising tags stay switched off until someone says yes, and
if they change their mind later, the cookies are deleted.

It is built for UK and EU sites, following the ICO’s guidance under PECR and UK 
GDPR: Reject is as easy as Accept, nothing is ticked in advance, and visitors can
change their choice at any time.

#### Why NetCookies

 * **Completely free.** Every feature on this page, with no page-view limits, no
   account to create and no “upgrade to unlock blocking”.
 * **Fair by design.** Accept all and Reject all sit side by side and look identical.
   No pre-ticked boxes, no hidden reject link, no cookie wall.
 * **Blocks for real.** Scripts wait inside inert templates until a visitor agrees
   to their category, so nothing runs early. Turn a category off and its cookies
   are removed.
 * **Google Consent Mode v2 built in.** Paste your Google Analytics 4 or Tag Manager
   ID and NetCookies sends Google the consent signals it needs, in basic or advanced
   mode.
 * **Works with the WP Consent API.** If the free WP Consent API plugin is installed,
   NetCookies tells it about every choice, so plugins that follow it, such as WooCommerce
   Order Attribution, wait for your visitors to agree.
 * **Works with page caching.** The banner is drawn in the browser, so every visitor
   can be served the same cached page.
 * **Finds your cookies.** Scan your site to see the cookies it sets and any tracking
   that loads before consent, with advice on how to fix each one. Cookies made by
   JavaScript are picked up as you browse your own site while logged in.
 * **A cookie list that writes itself.** Put [netcookies_declaration] on a page 
   for a tidy table of every cookie, grouped by category, with plain-English descriptions
   of nearly 40 common cookies.
 * **Proof of consent.** Every choice is recorded against a random ID that only 
   the visitor holds, scrambled so it can’t be traced back to them. No IP addresses.
   Export to CSV whenever you need it.
 * **Light.** One small script and stylesheet, no jQuery. NetCookies itself makes
   no external requests from your visitors’ browsers; only the tracking services
   you add are loaded, after consent (see External services).
 * **Accessible.** Keyboard friendly, screen-reader labels, proper switches, focus
   kept inside the settings panel and 44px touch targets.
 * **Respects Global Privacy Control.** If a browser sends the “do not share” signal,
   marketing cookies stay off unless the visitor switches them on.

#### Part of the Netchameleon Suite

NetCookies is part of the Netchameleon Suite, a family of WordPress plugins by Netchameleon
that work together. It knows the cookies that other Net plugins set, such as NetPolls
and NetBookings, and lists them for you automatically. Every Net plugin shares one
Netchameleon Suite menu in your dashboard.

### External services

NetCookies does not connect to any outside service unless you set one up. These 
are the services it can use:

#### Google Analytics 4 and Google Tag Manager

Used only if you enter a Google Analytics measurement ID or a Tag Manager container
ID on the Categories & scripts screen. NetCookies then adds Google’s tag (gtag.js
from www.googletagmanager.com, or gtm.js for Tag Manager) to your pages. In basic
Consent Mode (the default) the tag loads only after a visitor allows Analytics (
or, for Tag Manager, Analytics or Marketing). In advanced Consent Mode the tag loads
on every page and sends Google cookieless pings with the visitor’s consent state
until they choose. Google receives the page address, browser details, the visitor’s
IP address and, once consent is given, analytics cookie identifiers.

Google terms of service: https://policies.google.com/terms
 Google Analytics terms:
https://marketingplatform.google.com/about/analytics/terms/us/ Google privacy policy:
https://policies.google.com/privacy

#### Meta (Facebook) Pixel

Used only if you enter a Meta Pixel ID. NetCookies adds Meta’s pixel script (from
connect.facebook.net) after a visitor allows Marketing cookies. Meta receives the
page address, browser details, the visitor’s IP address and its own cookie identifiers,
and records a page view.

Meta Business Tools terms: https://www.facebook.com/legal/terms/businesstools
 Meta
privacy policy: https://www.facebook.com/privacy/policy/

#### Microsoft Clarity

Used only if you enter a Clarity project ID. NetCookies adds Clarity’s script (from
www.clarity.ms) after a visitor allows Analytics cookies. Clarity receives the page
address, browser details, the visitor’s IP address and recordings of how the page
is used.

Microsoft Clarity terms: https://clarity.microsoft.com/terms
 Microsoft privacy 
statement: https://privacy.microsoft.com/privacystatement

#### Site scan (your own site only)

The “Scan my site” button on the Cookie list tab loads up to four pages of your 
own site (from your server to your server) and looks for cookies and for the addresses
of well-known services such as Google Analytics, YouTube or Stripe in the page code.
It never contacts those services: their names and addresses are only a list of patterns
to look for, so the scan can tell you what your site already loads. Nothing is sent
outside your site.

#### Netchameleon plugin list (dashboard only)

Used only if you tick “Keep the list up to date” on the Banner tab. It is off by
default; until then the “More from Netchameleon” box uses a list built into the 
plugin. When it is on, your site downloads a short list of Net plugins from https://
netchameleon.co.uk/netchameleon-suite.json about once a week, to show in the sidebar
of the NetCookies settings page. The request is made by your server, not by visitors.
It sends no information about your site beyond what any web request includes (your
server’s IP address and a “NetCookies” user agent).

Netchameleon privacy policy: https://netchameleon.co.uk/privacy-policy/

### Developer notes

JavaScript:

 * `NetCookies.hasConsent( 'analytics' )` – true or false
 * `NetCookies.getConsent()` – all categories, or null before a choice
 * `NetCookies.open()` – open the settings panel
 * `NetCookies.set( { analytics: true } )`, `NetCookies.acceptAll()`, `NetCookies.
   rejectAll()`
 * Events on document: `netcookies:ready` and `netcookies:change` (detail: consent,
   action, revoked)

PHP: `netcookies_has_consent( 'analytics' )` (not reliable on cached pages; use 
the JavaScript API there).

Categories: necessary, functional, analytics, marketing.

Filters: netcookies_settings, netcookies_active, netcookies_config, netcookies_consent_mode,
netcookies_category_snippets, netcookies_blocked_handles, netcookies_known_cookies,
netcookies_declaration_rows, netcookies_scan_services, netcookies_scan_pages, netcookies_rate_limit,
netcookies_showcase_url.

Actions: netcookies_loaded.

Settings page hooks, for add-ons: `net_netcookies_settings_tabs` (filter, add tabs),`
net_netcookies_settings_cards_{tab}` (action, add cards to a tab), `net_netcookies_save_settings`(
action, save them), `net_netcookies_sidebar` (filter, sidebar boxes) and `net_netcookies_is_pro`(
filter).

Netchameleon plugins can declare their cookies with `netcookies_known_cookies`:

    ```
    add_filter( 'netcookies_known_cookies', function ( $list ) { $list[] = array( 'name' => 'my_cookie', 'category' => 'functional', 'provider' => 'My plugin', 'purpose' => 'Remembers …', 'duration' => '1 year', 'type' => 'cookie' ); return $list; } );
    ```

Shortcodes: `[netcookies_settings label="Cookie settings"]` and `[netcookies_declaration]`(
add `status="no"` to hide the “your current choice” line).

## Screenshots

[⌊The banner as a bar, with Accept and Reject side by side.⌉⌊The banner as a bar,
with Accept and Reject side by side.⌉[

The banner as a bar, with Accept and Reject side by side.

[⌊The settings panel with a switch for each category.⌉⌊The settings panel with a
switch for each category.⌉[

The settings panel with a switch for each category.

[⌊The Cookie list tab: scan your site and describe your own cookies.⌉⌊The Cookie
list tab: scan your site and describe your own cookies.⌉[

The Cookie list tab: scan your site and describe your own cookies.

[⌊The consent record, with a summary of the last 30 days.⌉⌊The consent record, with
a summary of the last 30 days.⌉[

The consent record, with a summary of the last 30 days.

## Installation

 1. Install and activate NetCookies. The banner starts working straight away with sensible
    defaults.
 2. Go to **Netchameleon  NetCookies  Cookie list** and click **Scan now** to see what
    your site uses.
 3. On **Categories & scripts**, paste your Google Analytics, Tag Manager, Meta Pixel
    or Clarity ID, or paste any other tracking code into the right category. Remove
    the same code from your theme or other plugins so it only loads once.
 4. Click **Create a cookie policy page**, check it and publish it.
 5. Add a “Cookie settings” link to your footer with [netcookies_settings], or link
    any menu item to #netcookies.

## FAQ

### Is this enough to make my site legal?

NetCookies gives you the tools the ICO expects: prior consent for non-essential 
cookies, equal choices, a way to withdraw, clear information and records. You still
need to set it up for the cookies your site uses and keep your privacy and cookie
policies accurate. We aren’t lawyers and this isn’t legal advice.

### How do I block a script that another plugin adds?

Run a scan. If NetCookies finds a tracking script it will tell you its “handle” (
WordPress’s name for it). Add that handle to “Hold back plugin scripts” under the
right category.

You can also mark up your own code by hand:

    ```
    <script type="text/plain" data-netcookies="analytics" src="https://example.com/tracker.js"></script>

    <iframe data-netcookies="marketing" data-src="https://www.youtube.com/embed/…"></iframe>
    ```

Embeds held back like this show a friendly placeholder with a button to allow that
category.

### Basic or advanced Consent Mode?

Basic (the default) doesn’t load Google’s tags at all until a visitor agrees. Advanced
loads them straight away without cookies and sends anonymous pings, which helps 
Google model the data you miss. Basic is the cautious choice for UK sites.

### Does it work with the WP Consent API?

Yes. Install the free WP Consent API plugin and NetCookies registers as your consent
banner, sets consent to opt-in and passes each visitor’s choice to it straight away.
Plugins that follow the API then hold back their cookies until the visitor agrees.
For example, WooCommerce Order Attribution (the sbjs_ cookies) waits for Marketing
consent. NetCookies’ Functional category becomes the API’s “preferences”, Analytics
becomes “statistics” and Marketing becomes “marketing”. Without the WP Consent API
plugin NetCookies works exactly as before.

### Does it work with caching plugins?

Yes. The page HTML is the same for everyone; the visitor’s choice is read in their
browser. Consent is recorded through the WordPress REST API.

### What does the consent record contain?

For each choice: the date, which categories were allowed, the banner version, whether
the browser sent Global Privacy Control, and a scrambled version of the random ID
kept in the visitor’s own consent cookie. No IP address, browser details or page
address. Records are deleted after 365 days by default; you can change this.

If a visitor asks what they agreed to, they can read their consent ID at the bottom
of the cookie settings panel and you can search for it.

### How do I ask everyone again?

On the Banner tab, click **Ask everyone again**. Use this when you add new cookies
or change how you use data.

### Is there a paid version?

No. Everything described here is in this free plugin, with no limits and no licence
key. Netchameleon makes other plugins, some of them paid, and the NetCookies settings
page shows a small list of them in its sidebar that you can switch off.

### What happens to my data if I delete the plugin?

Deleting NetCookies removes its settings, the detected-cookie list and the consent
record table. To keep the consent record, add `define( 'NETCOOKIES_KEEP_DATA', true);`
to wp-config.php before deleting. Download the CSV first if you might need it.

### Is any data sent to Netchameleon?

No. Your visitors’ browsers never contact us. The NetCookies settings page shows
a small “More from Netchameleon” box using a list built into the plugin, so it makes
no outside requests. You can switch the box off, or opt in to keep its list up to
date from our site (see External services), on the Banner tab.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“NetCookies” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ netchameleon ](https://profiles.wordpress.org/netchameleon/)

[Translate “NetCookies” into your language.](https://translate.wordpress.org/projects/wp-plugins/netcookies)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/netcookies/), check
out the [SVN repository](https://plugins.svn.wordpress.org/netcookies/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/netcookies/) by 
[RSS](https://plugins.trac.wordpress.org/log/netcookies/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.9

 * The plugin is now registered with the Netchameleon menu on init, so translations
   are no longer loaded too early (no _load_textdomain_just_in_time notice with 
   WP_DEBUG on).
 * Fixed a PHP notice on the NetCookies settings page: the page title was missing
   once its menu moved under Netchameleon. Shared hub updated to 0.7.2.
 * The shared admin stylesheet handle is now netchameleon-admin.
 * readme: explained that the site scan only requests your own pages.

#### 1.0.8

 * Add-ons can now ask the banner to wait briefly before it appears (window.NetCookiesGate),
   so NetCookies Pro’s location rules can decide what each visitor sees. Without
   an add-on nothing changes: the banner works exactly as before.
 * NetCookies.hasChosen() only reports a real choice the visitor made.

#### 1.0.7

 * WP Consent API support. When the WP Consent API plugin is installed, NetCookies
   registers as the consent banner, sets the consent type to opt-in and passes every
   choice to it without a page reload (Functional  preferences, Analytics  statistics
   and statistics-anonymous, Marketing  marketing). Plugins that respect the API,
   including WooCommerce Order Attribution, now wait for consent before setting 
   cookies. No change if the API plugin isn’t installed.
 * WooCommerce’s sbjs_ order attribution cookies are now listed under Marketing,
   the category WooCommerce asks for, so switching Marketing off removes them.
 * Added the WP Consent API’s wp_consent_ cookies to the cookie list as essential.

#### 1.0.6

 * The Netchameleon menu and Suite Overview now use the Netchameleon chameleon icon,
   coloured to match your admin colour scheme. Shared hub updated to 0.7.1.

#### 1.0.5

 * Renamed the shared plugin family to the Netchameleon Suite. The shared admin 
   menu is now called “Netchameleon” (page title “Netchameleon Suite”) and sits 
   between Tools and Settings. Shared hub updated to 0.7.0: class Netchameleon_Suite,
   menu slug ncsuite, filters netchameleon_suite_plugins, netchameleon_suite_catalogue,
   netchameleon_suite_menu_position and netchameleon_suite_fold_menus. The overview’s
   list of other plugins is now headed “More from Netchameleon”, and plugin links
   point to each plugin’s own page and to netchameleon.co.uk/plugins/.

#### 1.0.4

 * Suite menu: shared hub updated to 0.6.1, so PRO badges show in the tab bar and
   admin menu.

#### 1.0.3

 * Suite menu: the shared menu now sits just above Settings in the WordPress admin
   menu, instead of directly under Dashboard. Shared hub updated to 0.6.0.

#### 1.0.2

 * Suite menu: shared hub updated to 0.5.2. The retired SMTP mailer is no longer
   listed (NetCampaigns handles sending), and every product now uses its one-word
   name, e.g. NetClassified and NetConnect.

#### 1.0.1

 * Netchameleon Suite: Netchameleon Campaigns is now listed under its new name, 
   NetCampaigns.

#### 1.0.0

 * First public release.
 * Cookie banner in three styles (bar, corner box, centred box) with Accept all 
   and Reject all side by side, plus a settings panel with a switch for each category.
 * Script blocking: built-in Google Analytics 4, Tag Manager, Meta Pixel and Microsoft
   Clarity integrations, your own scripts per category, holding back scripts other
   plugins enqueue, and placeholders for embeds.
 * Google Consent Mode v2, basic and advanced.
 * Cookie scan, a library of common cookies and the [netcookies_declaration] cookie
   list.
 * Consent record with search, CSV export and automatic clean-up.
 * Global Privacy Control support.
 * Netchameleon Suite: NetCookies appears in the shared Netchameleon Suite menu 
   and Overview, and lists cookies set by other Net plugins automatically.
 * One settings page with tabs (Banner, Categories & scripts, Cookie list, Consent
   record, Help), laid out like every Netchameleon Suite plugin.

## Meta

 *  Version **1.0.9**
 *  Last updated **2 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.3 or higher **
 *  Tested up to **7.1.5**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [consent mode](https://wordpress.org/plugins/tags/consent-mode/)[cookie banner](https://wordpress.org/plugins/tags/cookie-banner/)
   [cookie consent](https://wordpress.org/plugins/tags/cookie-consent/)[GDPR](https://wordpress.org/plugins/tags/gdpr/)
   [PECR](https://wordpress.org/plugins/tags/pecr/)
 *  [Advanced View](https://wordpress.org/plugins/netcookies/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/netcookies/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/netcookies/reviews/)

## Contributors

 *   [ netchameleon ](https://profiles.wordpress.org/netchameleon/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/netcookies/)