Skip to main content
Technical implementation

Test US opt-out and GPC with GA4, Clarity and other tags

What happens to GA4, Microsoft Clarity and other tags when a US visitor opts out, and how to test the opt-out, GPC and the flows outside the browser.

A US opt-out applies to services used for sale, sharing or targeted advertising, regardless of whether you label them Analytics or Marketing. Review the service’s actual use and configuration. A consent signal alone does not prove that all covered data transfers have stopped.

Built in, your configuration and your integrations

Three things decide what runs. Geo-targeting decides which experience a visitor gets. Category settings decide which optional categories a visitor allows. The US opt-out of sale, sharing and targeted advertising can stop services across categories. An allowed category never lifts a US opt-out, and a later opt-in to a legal purpose never switches on a category the visitor turned off separately. Built in: the opt-out blocks covered services on later pages, stops their requests on the current page, sets the Google consent mode signals and GA4’s opt-out flag, and controls Clarity, Meta, TikTok, Microsoft Advertising and HubSpot. Your part: the service review in US Privacy and every flow outside the browser.

Three hypothetical cases show how a service is treated:

  • A. An analytics service that is also used for targeted advertising or relevant sharing is covered by the opt-out, even though its category is Analytics.
  • B. You have reviewed an analytics setup, its actual data use, settings, recipients and contract terms, and can document that it falls outside the opt-out. Once that review is recorded in US Privacy, the service can keep running, but only where the visitor’s category choices and your regional rules allow it.
  • C. You have not reviewed the service yet. Passiro’s cautious default applies and the service stops on opt-out. That is a product default, not a legal finding that every analytics tool sells data.

GA4 and Microsoft Clarity

For Google tags, the opt-out denies ad_storage, ad_user_data and ad_personalization; analytics_storage is denied when analytics is blocked. A covered Google tag is blocked on later pages and its requests stop on the current page. A Google Analytics setup you excluded after a review keeps measuring with the advertising signals denied. With denied storage, Google can still send cookieless pings, so no cookies is not the same as no data transfer. Do not add a second consent default script; Passiro sets the defaults.

Microsoft Clarity’s consent parameters are called ad_Storage and analytics_Storage, with that capitalization. When only analytics storage is denied, Clarity can keep collecting without cookies, so a covered Clarity is stopped completely rather than switched to cookieless collection. A consent update in Google’s dataLayer does not show that Clarity received a signal; check Clarity’s own requests.

Test matrix

Run each test in a fresh browser profile from a US location, with the Network and Application panels of the developer tools open. For each test, note the starting state, the action, the expected state and the requests you checked:

  1. Fresh US session with no saved choice and no GPC: services run according to your configured baseline. Do not expect the denied defaults of an EU banner.
  2. Select Do Not Sell or Share My Personal Information: covered services stop sending requests, the Google advertising signals are denied and the panel shows Your opt-out is active.
  3. Close without choosing, then reopen the panel: nothing changes. Close is not counted as acceptance, and opening the panel changes nothing by itself.
  4. GPC switched on before the page loads: the opt-out applies before covered tags are released, and the status shows it without a click.
  5. Switch GPC on after an earlier visit without it, also after the visitor accepted: the new restrictions apply, including to integrations that are already running.
  6. Return without GPC after a saved opt-out: the opt-out still applies.
  7. Switch analytics off separately in the panel, then make another choice: analytics stays off.
  8. Click the header or footer link from outside the US: the privacy controls open, and the stricter opt-in rules of the visitor’s own banner still apply.
  9. Repeat with both US layouts, on desktop and mobile, with normal page loads and, on a single-page application, with route changes.
  10. Block storage or the consent logging request in the browser: the restrictions in force stay in place and are never turned into permission. If you use known customer profiles or server-side tagging, also check the effect in that system.

Keep a short record for each test, with synthetic values only and no cookie values, keys or visitor identifiers. For example:

Time: 24 Nov 2026, 10:15 CET
Website: test.example.com
Banner: US opt-out – Default, published
Region: California
GPC: no
Action: Do Not Sell or Share My Personal Information
Service: Google Analytics (covered)
Before: a request to google-analytics.com on each page view
After: no new requests; the panel shows Your opt-out is active.
Result: as expected

Server-side flows and known profiles

The banner controls tags in the browser. An event does not by itself stop CRM exports, audience uploads, conversion APIs or server events, so connect each of them. Read the state with Passiro.usPrivacy.get(), or listen for the window event passiro:us-privacy; the dataLayer receives passiro_us_privacy. Both give optedOut with sale, sharing and targetedAdvertising, plus source, gpc (signal and honored), effective (the categories in force) and updatedAt. The event also tells you with initial whether it reports the state at page load. In this example, /api/privacy-opt-out is your own endpoint:

// Tell your own backend when a visitor has opted out.
// The event also fires with the state at page load, so your backend
// should treat repeated messages for the same visitor as one opt-out.
function reportOptOut(state) {
var out = state.optedOut;
if (!out.sale && !out.sharing && !out.targetedAdvertising) return;
navigator.sendBeacon('/api/privacy-opt-out', JSON.stringify({
source: state.source,
gpc: state.gpc.honored,
updatedAt: state.updatedAt
}));
}

window.addEventListener('passiro:us-privacy', function (event) {
reportOptOut(event.detail);
});

In your backend, stop the flows for that visitor: leave them out of audience uploads, stop server-side events with advertising data and, when you know who the visitor is, apply the opt-out to their customer profile. Name an owner for each flow and the check that shows it stopped. Data sent before the opt-out cannot be recalled by the banner.

Troubleshooting

The opt-out looks active but requests continue: find out whether they belong to a covered service, to analytics you reviewed and excluded, or to a technical error such as a tag that loads before the Passiro script. GPC gives no first banner: that is expected, so check the status and the link instead. US Privacy is greyed out: check for an active US banner and your team permissions, not your plan. The link works only with JavaScript: test the fallback page separately with JavaScript switched off.

When you contact support, include the website, the time with time zone, the banner, the region, GPC yes or no, the action, the service and the request you saw. See also Set up US privacy choices and Global Privacy Control, Understand cookie categories, Review third-party tags in a tag manager and Capture a useful network log for support.

Related guides