[00] Subset Opt-Out, User guide
GPP and US Privacy signals
Last updated
How Subset Opt-Out answers ad tags that ask for a visitor's choice through the IAB's __gpp and __uspapi interfaces, what the strings say, and how to check them.
Google Ad Manager, AdSense and most ad exchanges ask the page for the visitor’s privacy choice through two interfaces from the IAB (Interactive Advertising Bureau): __gpp, the Global Privacy Platform, and __uspapi, the older US Privacy API. From version 0.11.0, Subset Opt-Out answers both, so an ad tag that reads them sees an opt-out or a Global Privacy Control (GPC) signal. Without an answer, most ad tags treat the visitor as not opted out.
Both are on by default. You’ll find them under Subset → Opt-Out → 6. Consent signals → Ad privacy signals.
What the ad tags are told
The answer is worked out in the visitor’s browser from their choice, so page caching keeps working. It changes as soon as they opt out or opt back in.
| Visitor | GPP string | US Privacy string |
|---|---|---|
| Hasn’t opted out | US National section (usnat), “did not opt out” | 1YNN |
| Opted out, or their browser sends GPC | US National section (usnat), “opted out” | 1YYN |
| Known to be outside the US (Pro’s regions) | Header only, no US section | 1--- |
| Opt-in mode (Pro) | Header only, no US section | None |
In the GPP string, an opt-out covers all three US opt-outs: sale, sharing and targeted advertising. That matches what an opt-out stops on your site, the marketing category. The string also says:
- Notice was given. Keep the privacy choices link on every page, so that’s true.
- Whether the browser sends GPC, in the GPC subsection.
- Sensitive data and children’s data: not applicable. The plugin can’t know whether your site processes them, so it doesn’t claim a choice about them.
- Not an MSPA covered transaction. The Multi-State Privacy Agreement is a contract ad companies sign with each other. If your site hasn’t signed it, that’s the right answer.
With Subset Opt-Out Pro’s regions, visitors in California, Colorado, Connecticut, Utah and Virginia also get their state’s own section, which ad tags then treat as the one that applies.
In opt-in mode the US strings aren’t sent. Ad scripts are held until the visitor accepts, so there’s nothing for them to read.
Check the signals
Under Subset → Opt-Out, Check the ad signals shows what ad tags are told. Pick the visitor’s choice, whether their browser sends GPC and where they are, then click Show the signals. You get the GPP string, the US Privacy string and every field in each section. In the fields, 1 means yes or opted out, 2 means no or did not opt out, and 0 means not applicable. Nothing is saved.
The same check runs from WP-CLI:
wp subset cookie-manager signals --denied=marketing --place=CA
See the WP-CLI reference for the options.
To see what a real page says, open your site, then run this in the browser console:
__gpp("ping", (data) => console.log(data.gppString, data.applicableSections));
__uspapi("getUSPData", 1, (data) => console.log(data && data.uspString));
Switch them off
Untick Answer ad tags that ask through the Global Privacy Platform (GPP) or Also answer the older US Privacy interface (__uspapi), then save. With both off, the signals script isn’t loaded at all. The IAB retired the US Privacy API in 2024, but Google and some ad tags still read it, so it’s on by default too.
If another consent tool on your site already provides __gpp or __uspapi, Subset Opt-Out leaves it in place and doesn’t answer for it.
With Opt-Out Pro
Opt-Out Pro knows which state a visitor is in once its regions are set up. The GPP signal waits for that answer, for at most four seconds, and reports “not ready” until then. Ad tags that follow the GPP spec wait for “ready” before they read the string.
For developers
window.__gppfollows the IAB’s GPP CMP API 1.1:ping,addEventListener,removeEventListener,hasSection,getSectionandgetField.cmpIdis 1, the spec’s value for a site without a registered CMP ID.window.__uspapianswersgetUSPData.- Ad frames find both through the hidden
__gppLocatorand__uspapiLocatorframes and ask withpostMessage. subsetCM.gpp()andsubsetCM.usp()return the current strings.
The developer reference has the details. The encoding is tested against the IAB Tech Lab’s own test strings for each section.