US Privacy: CCPA, GPC and DoNotTrack
Manage privacy compliance for your US users (CCPA/CPRA, GPC, DoNotTrack) with the Dastra cookie consent widget.
Regulatory context
Unlike the GDPR which requires opt-in (prior consent), US privacy law is primarily based on an opt-out model: trackers can be placed by default, but users must be able to object without difficulty.
Key regulations to be aware of:
CCPA / CPRA
California
Opt-out
2020 / 2023
CPA
Colorado
Opt-out
2023
VCDPA
Virginia
Opt-out
2023
CTDPA
Connecticut
Opt-out
2023
Recommended approach with Dastra
1. Create a geo-targeted variant for the United States
The simplest way to handle your US users is to create a geo-targeted variant from the variants drop-down at the top right of your banner editor (see Geo-targeted variants).
For California (CCPA/CPRA), configure the variant with an opt-out model: non-essential cookies are active by default, and users can opt out. Also consider adding a "Do Not Sell or Share My Personal Information" link in your site footer that opens the widget directly.
For other US states without a banner requirement, you can enable the "Do not display a banner" option with default consent values configured according to your policy.
Geo-targeted variants2. Honour GPC and DoNotTrack signals
Two browser signals allow a user to express their refusal to be tracked without interacting with a banner:
GPC (globalPrivacyControl)
W3C
Yes (CPRA)
Opt-out signal for the sale/sharing of personal data
DNT (doNotTrack)
W3C
No
"Do not track" preference signal (not legally enforceable)
Native activation (recommended)
Dastra now supports these signals natively via a toggle in the widget configuration. Enable the "Enable Global Privacy Control (GPC)" option from Widget configuration > Advanced settings.

When this option is enabled and the visitor has not made any choice yet, the widget automatically refuses every cookie category other than necessary cookies (preference, analytical, marketing, other and unclassified) as soon as the browser sends a GPC or DoNotTrack signal, with no additional code. The banner is not displayed to this visitor.
The same toggle exists in each Geo-target variation: enable it on the variation that covers California.
Advanced option: Custom JS snippet
If you need finer control (for example displaying an acknowledgment message or applying opt-out to specific categories), you can use the following JS snippet in addition to the native toggle, or instead of it if you manage the widget via the JS API:
Category labels to use with setPurposeConsent:
Necessary
Necessary
Preferences
Preference
Analytics
Analytical
Marketing
Marketing
Other
Other
Unclassified
Unclassified
3. Displaying an "Opt-Out Request Honored" acknowledgment message
When a GPC or DNT signal is detected, regulations such as CPRA recommend informing the user that their opt-out request has been acknowledged.
With native activation, the widget displays this message for 6 seconds instead of the banner. Default text: "Global Privacy Control detected: analytics and marketing cookies have been disabled." To change it, open the Texts and localizations section of the banner, Home page group, in the field described as "Message displayed when the browser sends a Global Privacy Control or Do Not Track signal".
The widget also dispatches the dastra:gpc:applied event on window, which you can listen to for your own processing.
If you do not use native activation, or if you want a different display, two snippet-based approaches are available.
Option A: Ephemeral toast
A message that appears for a few seconds then disappears automatically. Easy to implement, but the user may miss it if they are not looking at the page at the right moment.
Option B: Persistent banner
A fixed bar at the bottom of the page, visible as long as GPC is active in the browser. It is better for compliance: the indication is permanent, not just shown on first load. A Dismiss button lets the user close it.
Summary
CCPA geo-targeted variant
Dastra interface
Yes
GPC detection
Native toggle (widget config), recommended
Yes (CPRA)
DNT detection
Native toggle (widget config), recommended
No (recommended)
Acknowledgment message
Native (editable text) or JS snippet
No (recommended)
Last updated
Was this helpful?