How to Test GPC Integration
What is GPC?
Global Privacy Control (GPC) is a browser-level signal that communicates a user's privacy preferences to websites. Under CCPA, websites are required to honor the GPC signal as a valid opt-out of the sale of personal data.
When GPC is enabled in a visitor's browser, the navigator.globalPrivacyControl property is set to true.
Test Your Storefront
Set Up GPC in Your Browser
You can enable GPC using one of these methods:
- BRAVE Browser — Use the Brave browser with Shields turned off, as Brave has built-in GPC support.
- GPC Enabler Extension — Install a GPC browser extension (available for Chrome, Firefox, etc.) to enable the GPC signal.
Verify GPC Signal
Open your storefront in the browser and open Developer Tools (F12). In the Console tab, run:
console.log(navigator.globalPrivacyControl)The output should be true if GPC is properly enabled.
Test the Integration
Turn On GPC in the App
Navigate to Integrations in the Avada Cookie Consent app and enable the GPC integration.
Verify Sale of Data Status
With GPC enabled in your browser, visit your storefront and check that the sale_of_data consent signal is set to false:
// In browser console
console.log(window.__avada_cookie_consent?.sale_of_data)
// Expected output: falseBanner Behavior with GPC
When GPC is detected:
- The cookie banner is not shown initially — since the browser has already communicated the user's privacy preference.
- The reopen option remains available — visitors can still access the consent preferences through the cookie icon.
- The
sale_of_datavalue is always set tofalse— regardless of any other consent choices.
GPC is specifically designed for CCPA compliance. It signals that the user does not want their personal data to be sold, which is a core CCPA requirement.