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ファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    mukul975がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Gpc Cookie Integration」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/mukul975/Privacy-Data-Protection-Skills/tree/main/plugins/cookie-consent-skills/skills/gpc-cookie-integration
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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で使用

TypingMindのチャットでGpc Cookie Integrationを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGpc Cookie Integrationを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Gpc Cookie Integrationは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じ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

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでGpc Cookie Integrationを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Gpc Cookie Integrationはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGpc Cookie Integrationをインストールするにはどうすればよいですか?

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を使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Gpc Cookie Integrationで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGpc Cookie Integrationを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Gpc Cookie Integration」は無料ですか?

はい。mukul975がApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇