Skip to content

[02], plugin 10: Subset Opt-Out

Honour US privacy opt-outs without breaking your page cache

Handle US privacy opt-outs and GPC without breaking your cache.

US privacy laws let visitors opt out of having their data sold or shared, and browsers can ask for it automatically with Global Privacy Control. Subset Opt-Out adds a Your Privacy Choices link, honours GPC, and holds back marketing scripts for anyone who opts out.

To install and update the free plugins from wp-admin, add the Subset Installer.

DocumentationChangelogUnder the hoodCompare with WPConsentCompare with ComplianzCompare with CookieYes

Requires
WP 6.5+ · PHP 8.1+
Tested to
WP 7.1
WP-CLI
Yes
Multisite
Yes
Editions
Free + Pro

How Subset Opt-Out works

US state privacy laws are opt-out laws. You can usually run ad trackers by default, and a visitor has the right to tell you to stop selling or sharing their data. Subset Opt-Out is built for that case, so the free plugin shows no consent banner. Visitors get a Your Privacy Choices link that opens a panel with one switch.

Global Privacy Control (GPC) is a signal a browser can send with every request. If a visitor's browser sends it and they haven't made a choice on your site, they're treated as opted out from their first page view, with nothing to click.

Every visitor gets the same HTML, so your page cache keeps working. The tracking scripts the plugin knows are printed as inert markup for everyone. A script printed first in wp_head reads the visitor's choice and GPC in the browser, then runs the scripts that are allowed.

Google tags aren't blocked. They get Google Consent Mode v2 signals instead: every visitor starts with ad and analytics storage granted, and a visitor who opts out is switched to denied before any Google tag reads their consent.

The visitor's choice is kept in one first-party cookie, subset_cm_consent, for 12 months. Nothing about visitors is stored in your database.

How Subset Opt-Out works, for developers

What each version includes

Pro is a separate add-on that installs alongside the free plugin. Everything in the free list stays free.

Free

Full plugin

No time limit and no upgrade nags.

  1. Automatic Global Privacy Control support
  2. Your Privacy Choices link: block, shortcode, menu or footer
  3. Optional notice bar
  4. Eight built-in marketing services, plus your own rules
  5. Google Consent Mode v2
  6. WP Consent API, Tag Manager and pixel plugin support
  7. Works with WP Rocket, LiteSpeed and other caching plugins
  8. No visitor data stored in your database

Pro

Add-on

Everything in Free, plus:

  1. Opt-in banner for the EU, UK and other regions
  2. Accept all, Reject all and Customize, given equal weight
  3. Site-wide opt-in for sites handling sensitive data
  4. Show the privacy link only in US states that need it
  5. Location from your CDN or host, with no third-party lookups
  6. Opt-out request log with CSV export

How it compares

Each comparison checks Subset Opt-Out against another plugin row by row, with a source for every claim about the other plugin. See every comparison

  • Subset Opt-Out vs WPConsent

    Checked

    Pick Subset Opt-Out if your site needs US opt-outs and Global Privacy Control without a consent banner, and you want every visitor to get the same HTML so your page cache keeps working. Pick WPConsent if you need an EU or UK opt-in banner in a free plugin, a scan that fills in each cookie's details, or a generated cookie policy page. Subset Opt-Out helps with compliance; it does not guarantee it. WPConsent's readme says the same of WPConsent.

  • Subset Opt-Out vs Complianz

    Checked

    Pick Subset Opt-Out if your site needs US opt-outs and Global Privacy Control in a free plugin, with the same HTML for every visitor so your page cache keeps working. Pick Complianz if you need consent banners for other regions, a cookie scan and generated legal documents, and you're willing to pay for Global Privacy Control. Subset Opt-Out helps with compliance; it does not guarantee it. Complianz's readme says it can't guarantee compliance either.

  • Subset Opt-Out vs CookieYes

    Checked

    Pick Subset Opt-Out if your site needs US opt-outs and Global Privacy Control in a free plugin, with the same HTML for every visitor so your page cache keeps working, and no outside service involved. Pick CookieYes if you need a GDPR opt-in banner, a cookie scan across your site and consent logs, and you're happy for the scan and the logs to run on CookieYes's servers. CookieYes honours Global Privacy Control on its Pro and Ultimate plans. Subset Opt-Out helps with compliance; it does not guarantee it. CookieYes's readme says no plugin can guarantee compliance.

Questions

Does it make my site compliant?
No. It helps you honour opt-out requests, and it isn't legal advice. Whether that's enough depends on your site and the laws that apply to it, so check with a lawyer.
Does it work with page caching?
Yes. Every visitor gets the same HTML, and the browser applies each visitor's choice. It also tells WP Rocket, LiteSpeed Cache, Autoptimize, Perfmatters, SiteGround Optimizer and Cloudflare Rocket Loader to leave its scripts alone, with no setup from you.
Do visitors have to click anything for Global Privacy Control to count?
No. A visitor whose browser sends GPC is treated as opted out from their first page view, even if they allowed selling and sharing on an earlier visit.
Does it block Google Analytics and Tag Manager?
No. Google tags get Google Consent Mode v2 signals instead, and a visitor who opts out is switched to denied before any Google tag reads their consent. This works with gtag.js, Google Tag Manager and Site Kit by Google.
Which trackers does it stop?
Meta Pixel, TikTok Pixel, Google Ads conversion and remarketing, LinkedIn Insight Tag, Pinterest Tag, X (Twitter) Pixel, Microsoft Advertising UET and Snap Pixel. For anything else, add up to 100 custom rules that match a script handle, part of a script's URL or a keyword in inline code.
Does an opt-out stop analytics too?
Not by default. An opt-out stops advertising only. To stop analytics as well, tick Opt-out also covers analytics in the plugin's settings.
What does it store about visitors?
One first-party cookie, subset_cm_consent, in the visitor's browser. It records their choice for 12 months. Nothing about visitors is stored in your database.
Does it show a consent banner to visitors in the EU or UK?
No. The free plugin is built for US opt-out and shows no consent banner. Pro adds opt-in mode: a consent banner with Accept all, Reject all and Customize, shown to every visitor or only to visitors in regions you choose, such as the EU/EEA and the UK.

Underneath

Every Subset plugin has WP-CLI commands and documented hooks and filters.

Read the developer reference

Every Subset Opt-Out WP-CLI command

WP-CLI
$ wp subset cookie-manager check https://example.com/
$ wp subset cookie-manager export --file=cookie-manager.json
$ wp subset cookie-manager import cookie-manager.json --dry-run

Hear about Subset Opt-Out releases

We’ll email you when Subset Opt-Out has a new release, and only about Subset Opt-Out.

One confirmation email, then nothing until we have news. Unsubscribing takes one click and no account.

We will email you a confirmation link. Click it and you are on the list. Until then nothing is confirmed.