Gpc Cookie Integration logo

Gpc Cookie Integration

Community
mukul975
gpc-cookie-integration

Integrating Global Privacy Control (GPC) signals with cookie consent platforms. Covers GPC signal detection in browsers, automatic opt-out triggering, mapping GPC to US state privacy laws, and CMP integration for CCPA, CPA, and CTDPA compliance.

Overview

Publishermukul975
RepositoryPrivacy-Data-Protection-Skills
Skill namegpc-cookie-integration
Stars
279
Forks
59
Bundled files
4
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by mukul975 on GitHub. Read the source before you install it.

Installation

Install the Gpc Cookie Integration AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mukul975/Privacy-Data-Protection-Skills.git /tmp/Privacy-Data-Protection-Skills
mkdir -p .claude/skills
cp -r /tmp/Privacy-Data-Protection-Skills/plugins/cookie-consent-skills/skills/gpc-cookie-integration .claude/skills/gpc-cookie-integration
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gpc Cookie Integration in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gpc Cookie Integration on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gpc Cookie Integration is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Global Privacy Control Integration with Cookie Consent

Overview

Global Privacy Control (GPC) is a browser-level signal that communicates a user's privacy preferences to websites. Specified by the GPC community group and recognized as a legally binding opt-out mechanism under California's CCPA/CPRA (effective January 1, 2023), Colorado's CPA (effective July 1, 2024), Connecticut's CTDPA (effective July 1, 2023), and other US state privacy laws, GPC transmits a Sec-GPC: 1 HTTP header and a navigator.globalPrivacyControl JavaScript property with each request. Websites must detect this signal and automatically trigger opt-out of sale, sharing, and targeted advertising without requiring additional user action. Integration with cookie consent management platforms (CMPs) is essential to ensure the GPC signal correctly suppresses advertising cookies and data sharing.

GPC Signal Specification

How GPC Works

HTTP Header:

Sec-GPC: 1

Present on every HTTP request when the user has enabled GPC in their browser or browser extension.

JavaScript API:

javascript
navigator.globalPrivacyControl  // Returns true if GPC is enabled

GPC-Enabled Browsers and Extensions:

Browser/ExtensionGPC SupportHow to Enable
FirefoxBuilt-in (v120+)Settings > Privacy & Security > "Tell websites not to sell or share my data"
BraveBuilt-in (default ON)Enabled by default; disable in Settings > Shields
DuckDuckGo BrowserBuilt-in (default ON)Enabled by default on mobile and desktop
DuckDuckGo ExtensionExtensionInstall extension; GPC enabled by default
Privacy Badger (EFF)ExtensionInstall extension; GPC enabled by default
OptMeowtExtensionChrome/Firefox extension specifically for GPC
SafariNot natively supportedRequires third-party extension
ChromeNot natively supportedRequires extension (DuckDuckGo, Privacy Badger)

GPC vs. Do Not Track (DNT)

FeatureGPCDNT
HTTP headerSec-GPC: 1DNT: 1
JavaScript APInavigator.globalPrivacyControlnavigator.doNotTrack
Legal recognitionYes — CCPA/CPRA, CPA, CTDPA, other state lawsNo legal enforcement mechanism
ScopeOpt-out of sale, sharing, targeted advertisingGeneral tracking preference
Browser adoptionGrowing (Firefox, Brave, DuckDuckGo)Deprecated by most browsers
Industry complianceLegally required in applicable jurisdictionsLargely ignored

US State Law Mapping

GPC Legal Requirements by State

StateLawGPC StatusEffective DateRequirement
CaliforniaCCPA/CPRALegally binding opt-outJan 1, 2023Must treat GPC as valid opt-out of sale and sharing (Cal. Civ. Code §1798.135(e); 11 CCR §7025(b))
ColoradoCPALegally binding opt-outJul 1, 2024Must honor "universal opt-out mechanism" including GPC (C.R.S. §6-1-1313(1)(a); 4 CCR 904-3 Rule 5.11)
ConnecticutCTDPALegally binding opt-outJul 1, 2023 (UOM: Jan 1, 2025)Must honor "opt-out preference signal" (P.A. 22-15, §6(a)(6))
MontanaMCDPALegally binding opt-outOct 1, 2024Must honor universal opt-out mechanism
TexasTDPSALegally binding opt-outJul 1, 2024 (UOM: Jan 1, 2025)Must honor universal opt-out mechanism
OregonOCPALegally binding opt-outJul 1, 2024 (UOM: Jan 1, 2026)Must honor universal opt-out mechanism
DelawareDPDPALegally binding opt-outJan 1, 2025 (UOM: Jan 1, 2026)Must honor universal opt-out mechanism
New HampshireNHPALegally binding opt-outJan 1, 2025Must honor universal opt-out mechanism
New JerseyNJDPALegally binding opt-outJan 15, 2025 (UOM: Jul 15, 2025)Must honor universal opt-out mechanism
VirginiaVCDPAVoluntary (no UOM mandate)Jan 1, 2023No explicit UOM requirement, but opt-out of targeted advertising required
UtahUCPAVoluntary (no UOM mandate)Dec 31, 2023No UOM requirement

What GPC Triggers

When GPC is detected for a user in an applicable jurisdiction:

Processing ActivityGPC ImpactAction Required
Sale of personal informationOpt-out triggeredStop selling PI for this user
Sharing for cross-context behavioral advertisingOpt-out triggeredStop sharing PI with ad partners
Targeted advertisingOpt-out triggered (CPA, CTDPA, TDPSA)Disable behavioral targeting
Profiling for automated decisionsOpt-out triggered (some states)Disable profiling
Analytics (first-party)Not triggeredGPC does not opt out of first-party analytics
Essential cookiesNot triggeredStrictly necessary cookies unaffected

CMP Integration

Detection and Response Flow

Page Load
    ├── Check for GPC signal
    │   ├── navigator.globalPrivacyControl === true
    │   │   OR
    │   └── Server detects Sec-GPC: 1 header
    ├── Determine user jurisdiction
    │   ├── IP geolocation → US state mapping
    │   └── Check if state has GPC legal requirement
    ├── If GPC detected AND applicable jurisdiction:
    │   ├── Automatically set consent state:
    │   │   ├── ad_storage: denied
    │   │   ├── ad_user_data: denied
    │   │   ├── ad_personalization: denied
    │   │   ├── analytics_storage: [per CMP default — GPC does not cover]
    │   │   └── sale_of_data: opted_out
    │   │
    │   ├── Block advertising cookies and tags
    │   ├── Do NOT fire: Meta Pixel, Google Ads remarketing, third-party ad tags
    │   ├── DO fire: GA4 (if analytics consent separate from GPC)
    │   │
    │   ├── Display modified banner (optional):
    │   │   "We detected your Global Privacy Control preference.
    │   │    We will not sell or share your personal information.
    │   │    [Manage Other Preferences]"
    │   │
    │   └── Record GPC opt-out in consent log
    └── If GPC detected but NON-applicable jurisdiction (e.g., EU):
        └── Treat as privacy signal but apply jurisdiction's own rules
            (EU still requires opt-in consent regardless of GPC)

Implementation for Pinnacle E-Commerce Ltd

Server-Side GPC Detection (Node.js middleware):

javascript
function detectGPC(req, res, next) {
  const gpcHeader = req.headers['sec-gpc'];
  const gpcEnabled = gpcHeader === '1';

  req.gpcSignal = gpcEnabled;

  if (gpcEnabled) {
    // Determine jurisdiction from IP
    const userState = geolocateToState(req.ip);

    // States where GPC is legally binding
    const gpcMandatoryStates = ['CA', 'CO', 'CT', 'MT', 'TX', 'OR', 'DE', 'NH', 'NJ'];

    req.gpcLegallyBinding = gpcMandatoryStates.includes(userState);
    req.gpcOptOut = {
      sale: gpcEnabled && req.gpcLegallyBinding,
      sharing: gpcEnabled && req.gpcLegallyBinding,
      targetedAdvertising: gpcEnabled && req.gpcLegallyBinding,
    };
  }

  next();
}

Client-Side GPC Detection and CMP Update:

javascript
function handleGPCSignal() {
  const gpcEnabled = navigator.globalPrivacyControl === true;

  if (!gpcEnabled) return;

  // Get user's jurisdiction (from server or geolocation)
  const userJurisdiction = getUserJurisdiction();
  const gpcBindingStates = ['CA', 'CO', 'CT', 'MT', 'TX', 'OR', 'DE', 'NH', 'NJ'];

  if (gpcBindingStates.includes(userJurisdiction)) {
    // Update Google Consent Mode
    gtag('consent', 'update', {
      'ad_storage': 'denied',
      'ad_user_data': 'denied',
      'ad_personalization': 'denied',
      // analytics_storage not affected by GPC
    });

    // Update CMP state
    updateCMPState({
      sale_optout: true,
      sharing_optout: true,
      targeted_advertising_optout: true,
      source: 'gpc_signal',
    });

    // Remove any existing advertising cookies
    removeAdvertisingCookies();

    // Log GPC opt-out
    logConsentEvent({
      type: 'gpc_auto_optout',
      jurisdiction: userJurisdiction,
      timestamp: new Date().toISOString(),
      gpc_header_present: true,
    });
  }
}

function removeAdvertisingCookies() {
  const adCookies = ['_fbp', '_fbc', '_gcl_au', 'IDE', 'fr', 'NID'];
  adCookies.forEach(name => {
    document.cookie = `${name}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=.pinnacle-ecommerce.com`;
  });
}

// Run on page load
handleGPCSignal();

CMP Platform Integration

OneTrust GPC Configuration:

SettingValue
Honor GPC SignalEnabled
GPC TreatmentApply to "Sale of Personal Data" and "Targeted Advertising" categories
GPC Applicable RegionsUS-CA, US-CO, US-CT, US-MT, US-TX, US-OR, US-DE, US-NH, US-NJ
GPC Banner BehaviorSuppress opt-out banner (already opted out); show confirmation notice
GPC Consent RecordLog GPC signal as opt-out source

Cookiebot GPC Configuration:

SettingValue
Respect GPCEnabled
GPC → Category MappingGPC = reject "Marketing" category
GPC RegionsCalifornia, Colorado, Connecticut, Montana, Texas, Oregon, Delaware, New Hampshire, New Jersey

GPC Verification and Compliance

Testing GPC Integration

TestExpected BehaviorVerification Method
GPC header sentBrowser sends Sec-GPC: 1Network inspector
Server detects GPCMiddleware sets req.gpcSignal = trueServer logs
Ad cookies blockedNo _fbp, _gcl_au, IDE cookies setCookie inspector
Ad tags blockedNo Meta Pixel, Google Ads remarketing requestsNetwork inspector
Analytics unaffectedGA4 still fires (GPC does not cover analytics)GA4 real-time reports
Consent log records GPCGPC opt-out logged with timestamp and jurisdictionDatabase query
CCPA opt-out link reflects GPC"Do Not Sell" page shows GPC-detected opt-out statusUI inspection
Modified banner displayedBanner acknowledges GPC preferenceVisual verification

CCPA/CPRA Specific Requirements

Under California Attorney General regulations (11 CCR §7025):

  1. No degradation of service: A business must not interpret GPC as consent to financial incentive opt-in
  2. Conflict resolution: If a user has previously opted in to sale/sharing, GPC on a subsequent visit should be treated as a revocation of that opt-in
  3. No re-prompting: Do not ask a GPC user to reconsider their opt-out choice
  4. Record keeping: Maintain records of GPC-triggered opt-outs for 24 months
  5. Privacy policy disclosure: State in the privacy policy that the business honors GPC

Pinnacle E-Commerce Ltd Privacy Policy Language:

"We recognize the Global Privacy Control (GPC) signal sent by your browser. When we detect a GPC signal from a user in California, we treat it as a request to opt out of the sale and sharing of personal information as defined under the California Consumer Privacy Act (CCPA) and California Privacy Rights Act (CPRA). We apply this opt-out automatically without requiring any additional action from you."

Edge Cases

ScenarioResolution
User has GPC enabled but previously opted IN to sharingGPC overrides — treat as opt-out (most recent signal governs)
User has GPC enabled and is in non-applicable state (e.g., Utah)Respect GPC as privacy preference but not legally required
User has GPC enabled and is in EUGPC does not substitute for opt-in consent; apply EU rules
GPC detected on API request (no browser)Honor if Sec-GPC header present (may be from privacy-aware app)
GPC enabled for some pages, disabled for othersPer-request evaluation; this should not normally occur
Multiple opt-out signals (GPC + cookie banner reject)Apply most restrictive — both result in opt-out

Key Legal and Technical References

  • GPC Specification (globalprivacycontrol.org) — Technical specification for the GPC signal
  • CCPA/CPRA Cal. Civ. Code §1798.135(e) — Business must treat GPC as valid opt-out request
  • 11 CCR §7025(b)-(c) (California AG Regulations) — GPC implementation requirements
  • Colorado CPA Rules, 4 CCR 904-3, Rule 5.11 — Universal opt-out mechanism requirements including GPC
  • Connecticut CTDPA P.A. 22-15, §6(a)(6) — Opt-out preference signal requirement
  • California AG Enforcement Action: Sephora (August 2022) — First CCPA enforcement for failure to honor GPC; $1.2 million settlement
  • EDPB Statement on GPC (2023) — European perspective on GPC as an expression of Article 21 objection right
  • W3C Privacy Community Group — GPC specification development
  • IAB CCPA Compliance Framework — US Privacy String and GPC interoperability

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gpc Cookie Integration AI skill do?

Integrating Global Privacy Control (GPC) signals with cookie consent platforms. Covers GPC signal detection in browsers, automatic opt-out triggering, mapping GPC to US state privacy laws, and CMP integration for CCPA, CPA, and CTDPA compliance.

Why use Gpc Cookie Integration on TypingMind?

Because you install it once and use it with any model. Gpc Cookie Integration is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gpc Cookie Integration in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/cookie-consent-skills/skills/gpc-cookie-integration. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gpc Cookie Integration?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gpc Cookie Integration?

As many as you like. As long as a model supports skills, you can use Gpc Cookie Integration with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gpc Cookie Integration AI skill free?

Yes. It is published on GitHub by mukul975 under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇