Логотип Gpc Cookie Integration

Gpc Cookie Integration

Сообщество
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.

Обзор

Издательmukul975
РепозиторийPrivacy-Data-Protection-Skills
Название навыкаgpc-cookie-integration
Звёзды
279
Форки
59
Файлы в комплекте
4
ЛицензияApache-2.0
Ссылки
  • Инструкции в формате Markdown

    Модель загружает файл SKILL.md по мере необходимости, поэтому токены расходуются только при подходящем запросе.

  • Работает с любой большой языковой моделью

    Навыки ИИ — это обычный Markdown, а не код для конкретного поставщика, поэтому они работают с GPT, Claude, Gemini, Grok и локальными моделями.

  • Файлы в комплекте: 4

    Скрипты, шаблоны и справочные материалы, которые модель может читать во время работы. Файлы доступны только для чтения и никогда не выполняются.

  • Открытый исходный код

    Издатель навыка на GitHub — mukul975. Перед установкой изучите исходные материалы.

Установка

Установите навык ИИ Gpc Cookie Integration в TypingMind, чтобы использовать его с любой LLM, или добавьте его в другой агент, который умеет читать SKILL.md.

1

Установка в TypingMind

TypingMind устанавливает навык прямо из его папки на GitHub: читает SKILL.md, собирает файлы ресурсов и сохраняет результат локально.

  1. Откройте приложение и перейдите в раздел «Плагины → Навыки».
  2. Выберите «Установить из GitHub».
  3. Вставьте указанную ниже ссылку на папку навыка и подтвердите установку.
    https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/cookie-consent-skills/skills/gpc-cookie-integration
  4. Включите навык в каждом чате, где хотите его использовать.
Плагины → Навыки → Добавить навык → По ссылке GitHub, затем вставьте ссылку на папку и нажмите «Продолжить».
2

Установка в другом агенте

Любой агент с поддержкой формата Agent Skills может использовать этот навык — скопируйте папку в каталог навыков этого агента.

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
После копирования перезапустите Claude Code, чтобы загрузить новый навык.

Использование в TypingMind

Включите навык Gpc Cookie Integration в любом чате TypingMind, и дальше модель всё сделает сама. Его название и описание хранятся в системном промпте, а при появлении подходящего запроса модель сама загружает полные инструкции. Вам не нужно вызывать навык вручную, и до фактического использования он не расходует токены.

Модель сама загружает навык Gpc Cookie Integration, как только появляется подходящий для него запрос.

Работает с любой моделью ИИ

Навыки ИИ — это обычные инструкции в Markdown, а не код для конкретного поставщика, поэтому навык Gpc Cookie Integration не привязан к модели, для которой он был создан. Установите его один раз в TypingMind и используйте с GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama или локальной моделью, которую запускаете самостоятельно, — со своими ключами API.

  • Загружается только при необходимости

    Системный промпт содержит только название и описание. Инструкции загружаются при первом подходящем запросе, поэтому неиспользуемый навык не расходует токены.

  • Меняйте модели прямо в чате

    Навык состоит из инструкций, а не кода, поэтому смена модели не нарушает его работу: новая модель читает тот же файл SKILL.md.

Инструкции навыка

Это содержимое файла SKILL.md, которое загружает модель. Прочитайте его перед установкой: навык — это инструкции, которым будет следовать ваша модель.

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

Файлы в комплекте

Модель читает эти файлы по мере необходимости, пока навык загружен. Они доступны только для чтения и никогда не выполняются.

Часто задаваемые вопросы

Что делает навык ИИ 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.

Зачем использовать Gpc Cookie Integration в TypingMind?

Потому что вы устанавливаете навык один раз и используете его с любой моделью. Gpc Cookie Integration — это обычный текст в формате Markdown, а не код для конкретного поставщика, поэтому один и тот же навык работает с GPT-5, Claude, Gemini, Grok или локальной моделью. Вы можете менять модель прямо во время чата, и навык продолжит работать. TypingMind использует ваши собственные ключи API, поэтому вы платите поставщикам напрямую, а не оформляете подписку с оплатой за каждое место. Ваши навыки и чаты остаются в вашем собственном хранилище.

Как установить Gpc Cookie Integration в TypingMind?

В TypingMind откройте «Плагины → Навыки → Установить из GitHub» и вставьте https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/cookie-consent-skills/skills/gpc-cookie-integration. TypingMind прочитает файл SKILL.md, включит сопутствующие файлы в пакет и установит навык, который можно включать отдельно для каждого чата.

Какие модели ИИ могут использовать Gpc Cookie Integration?

Любая модель, которую вы подключите в TypingMind. Навыки ИИ — это обычные инструкции в формате Markdown, а не код для конкретного поставщика, поэтому GPT, Claude, Gemini, Grok и локальные модели могут загружать этот навык, когда запрос ему соответствует.

Со сколькими моделями ИИ можно использовать Gpc Cookie Integration?

С любым количеством. В TypingMind вы можете использовать Gpc Cookie Integration с любой моделью, которая поддерживает навыки, в том числе с GPT, Claude, Gemini, Grok, DeepSeek, Mistral и Llama. Для этого вы используете собственные ключи API.

Бесплатен ли навык ИИ Gpc Cookie Integration?

Да. Навык опубликован на GitHub по лицензии Apache-2.0. Издатель — mukul975. Вы платите только своему поставщику ИИ за использованные токены.

Что такое навыки ИИ?

Навык ИИ — это набор инструкций, которыми модель ИИ может пользоваться каждый раз, когда ей нужно выполнить конкретную задачу. Он соответствует открытому формату Agent Skills: файл SKILL.md с названием и описанием, а также любые скрипты, шаблоны или справочные файлы, которые могут понадобиться модели. Модель читает инструкции, только когда ваш запрос соответствует навыку, поэтому установленный навык ничего не стоит, пока не используется.

Чем навыки ИИ отличаются от плагинов и серверов MCP?

Плагин или сервер MCP даёт модели новые инструменты, которые она может вызывать: при вызове где-то выполняется код и возвращает результат. Навык ИИ, напротив, даёт модели знания и описывает порядок действий: как подойти к задаче, какие шаги выполнить и каким должен быть хороший результат. Навыки — это обычный текст в формате Markdown, поэтому им не нужны сервер, ключ API или среда выполнения, и они работают с любой моделью.

Все

Создайте своё рабочее пространство с ИИ прямо сейчас

Подпишитесь на нашу рассылку, чтобы узнавать о новых функциях и предстоящих розыгрышах 👇