Global Privacy Control (GPC)

  • Updated

What is Global Privacy Control (GPC)?

Global Privacy Control (GPC) is an initiative designed to give users more control over their online privacy. By activating GPC in a browser, users can communicate their personal tracking preferences to participating websites, specifically indicating whether they consent to the sale of their personal data.


How to Enable GPC Support in Osano Cookie Consent

To enable GPC for Osano's Cookie Consent:

  1. Navigate to your cookie consent configuration settings.

  2. Toggle the "Support Global Privacy Control (GPC)" switch to "on."

This ensures that Osano recognizes and respects GPC signals from users.


How to Test GPC

Step 1: Prepare Your Environment

  • Use a browser or extension that supports GPC.

  • Enable GPC in your browser settings or via the extension.

Step 2: Check GPC Signal

  1. Navigate to your website or refresh the page.

  2. Open the Developer Tools in your browser.

  3. Go to the Console tab.

  4. Enter the following command:

    navigator.globalPrivacyControl
  5. If GPC is active, it should return true.

Step 3: Disable and Retest

  1. Turn off the GPC signal in your browser or extension.

  2. Clear cookies and cache.

  3. Refresh the page and re-enter the same command:

    navigator.globalPrivacyControl
  4. The result should now be false or undefined if the browser does not support GPC.


Testing GPC with Osano's Cookie Consent Manager (CMP)

Osano’s CMP intercepts and respects GPC signals, recording them within the Consent Object. Here's how it functions:

Steps to Test

  1. Enable GPC in your browser or extension.

  2. Clear cookies and cache.

  3. Navigate to the webpage where Osano is implemented.

  • If the user is in the US:

    • Osano's CMP detects the GPC signal and records an "Opt_Out" in the Consent Record.

    • The Do-Not-Sell toggle in the Storage Preferences drawer is disabled in the opt-in position, while the Targeted Advertising/Marketing category is disabled in the opt-out position.

    • The usprivacy string (or GPP) is sent via the U.S. IAB framework.

  • If the user is outside the U.S.:

    • The Consent Record will simply record an "Opt_Out".

    • No other changes occur unless the customer listens for OPT_OUT events via the Osano API and Event Listeners.


Verifying GPC Signals and Consent Object

Check if GPC Signal is Active

  1. Open Developer Tools and navigate to the Console tab.

  2. Enter:

    navigator.globalPrivacyControl
  3. The result will be true, false, or undefined (if unsupported).

View Osano Consent Values

To verify how Osano has recorded the user's preferences, enter:

Osano.cm.getConsent()

This will return an object like this:

{
  "ANALYTICS": "ACCEPT",
  "ESSENTIAL": "ACCEPT",
  "MARKETING": "DENY",
  "OPT_OUT": "ACCEPT",
  "PERSONALIZATION": "ACCEPT",
  "STORAGE": "ACCEPT"
}
  • The OPT_OUT value will be "ACCEPT" if GPC is enabled, and "DENY" if it's disabled.

  • This may vary by region, particularly in the U.S. where Do Not Sell preferences can alter the outcome.


By following these steps, you can ensure that GPC is properly configured and that Osano accurately records and respects user privacy preferences.