本文へスキップ
Skillpedia
分析とスプレッドシート75k · #2778

consent-mode

できること

このスキルは、Googleのタグが、各訪問者が同意した内容に基づいて正しい同意の信号を送っているかを確認します。Googleのアクセス解析や広告を使い、GDPRなどのプライバシーの規則に従う必要があるサイトの運営者向けです。

使う場面

  • ✓プライバシー法がある地域の訪問者に、Googleのアクセス解析や広告のタグを使っているとき。
  • ✓タグをConsent Mode v2の設定に更新する必要があるとき。
  • ✓同意の状態が正しく送られているかを確認したいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/consent-mode/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/consent-mode/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“広告とアクセス解析のタグが、訪問者が選んだCookieに従うように、私のサイトにGoogle Consent Mode v2を設定してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、広告のユーザーデータと広告のパーソナライズの同意の状態を送るようタグの設定を更新し、Googleへのリクエストに同意のパラメーターが含まれていることを確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Implement Google Consent Mode v2

Consent Mode v2 is essential for adhering to privacy regulations (like GDPR) while maintaining the ability to measure conversion and analytics data in a privacy-safe way.

Quick Reference

  • Adjust tag behavior based on user consent for privacy compliance
  • Maintain data insights through modeling for non-consenting users
  • Ensure the gcd parameter is present in pings to Google services

Check

Verify that Google Consent Mode v2 is correctly implemented and sending the appropriate consent states.

Fix

Update your GTM or gtag.js implementation to support the new ad_user_data and ad_personalization consent types.

Explain

Explain the transition to Consent Mode v2 and why it's required for digital advertising in certain regions.

Code Review

Review the routes, assets, and loading behavior that affect Implement Google Consent Mode v2. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/consent-mode

よくある質問

Consent Modeが重要なのは、なぜですか?

プライバシーに配慮した計測を許しつつ、GDPRなどのプライバシーの規則に従う助けになると、このスキルは説明しています。

新しい同意の種類は何ですか?

広告のユーザーデータと広告のパーソナライズが挙げられています。

動作しているかは、どう確かめられますか?

Googleのサービスに送られるpingに、gcdパラメーターが含まれているはずだと、このスキルは説明しています。

詳細

作者による元の説明

Use when auditing slow page loads, heavy assets, or rendering delays related to Implement Google Consent Mode v2. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2778
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル