AGENT SKILL

Cookie同意横幅A/B测试审计

cookie-consent-ab-audit

审计同意横幅 A/B 测试的方法论,以确保接受与拒绝同等便捷这一合规性。涵盖 CNIL 执法案例模式,包括谷歌 1.5 亿欧元罚款、暗黑模式检测方法、操纵性设计识别,以及符合监管要求的实验边界。

License 许可
Apache-2.0
最近更新
2026-03-17
Stars
★ 338
Forks
68

01 前言 Front Matter

name
cookie-consent-ab-audit
license
Apache-2.0
metadata
{ "tags": "cookie-consent-ab-testing, dark-patterns, cnil-enforcement, consent-banner, deceptive-design", "author": "mukul975", "domain": "privacy", "version": "1.0", "subdomain": "consent-management" }
description
Methodology for auditing A/B testing of consent banners to ensure compliance with equal ease of acceptance and rejection. Covers CNIL enforcement patterns including the EUR 150M Google fine, dark pattern detection methodology, manipulative design identification, and regulatory-compliant experimentation boundaries.

02 资源文件 10

03 SKILL.md 正文

Auditing Cookie Consent A/B Testing

Overview

A/B testing consent banners is a common practice to optimize consent rates. However, when these experiments manipulate users into consenting through design asymmetry, deceptive patterns, or unequal ease of acceptance versus rejection, they violate GDPR Article 7 and ePrivacy Directive Article 5(3). The CNIL has been the most active enforcer, issuing a EUR 150 million fine to Google (January 2022) and a EUR 60 million fine to Meta (January 2022) specifically for consent banner design violations.

Regulatory Framework for Consent Banner Design

Equal Prominence Requirement

CNIL Deliberation No. 2020-091 (September 17, 2020) and EDPB Guidelines 05/2020 establish:

  1. Equal Visual Weight: The "Accept" and "Reject" options must have the same visual prominence — same size, same color treatment, same font, same position hierarchy.
  2. Equal Interaction Cost: Rejecting cookies must require the same number of clicks/steps as accepting.
  3. No Pre-Selection: No purposes or vendors may be pre-selected.
  4. No Cookie Walls: Access to content must not be conditioned on cookie acceptance.
  5. Neutral Language: Neither option should use encouraging or discouraging language asymmetrically.

Key Enforcement Actions

Authority Target Fine Date Key Finding
CNIL Google LLC EUR 150,000,000 January 6, 2022 google.fr: accepting cookies required 1 click; rejecting required multiple clicks through secondary menu
CNIL Meta Platforms Ireland EUR 60,000,000 January 6, 2022 facebook.com: "Accept Cookies" button prominently displayed; "Refuse" buried in secondary layer
CNIL Microsoft Ireland EUR 60,000,000 December 22, 2022 bing.com: "Accept" button displayed without equally visible "Refuse"
CNIL TikTok EUR 5,000,000 December 29, 2022 tiktok.com: rejecting cookies more complex than accepting; insufficient information
Italian Garante Clearview AI EUR 20,000,000 March 9, 2022 No valid consent mechanism for biometric data processing

Dark Pattern Detection Methodology

Category 1: Visual Asymmetry

What to check:

  • Accept button: color, size, font weight, border, shadow, position
  • Reject button: color, size, font weight, border, shadow, position
  • Are they visually equal? A bright green "Accept All" next to a grey text-link "Manage Preferences" fails this test.

Measurement:

  • Button area (width x height in pixels)
  • Color contrast ratio against background (WCAG calculation)
  • Font size and weight
  • Visual hierarchy position (above vs below the fold, left vs right)

Category 2: Interaction Asymmetry

What to check:

  • Clicks to accept all: typically 1 (click "Accept All")
  • Clicks to reject all: should be 1 (click "Reject All") — NOT 2+ (click "Manage" then toggle then "Save")
  • Is a "Reject All" button present on the first layer?

CNIL standard: A "Refuse All" button must be available on the same layer and with the same prominence as the "Accept All" button.

Category 3: Language Manipulation

What to check:

  • Accept text: neutral or encouraging? ("Accept and continue enjoying our site")
  • Reject text: neutral or discouraging? ("I don't want a personalized experience")
  • Is the reject option framed as losing something?

Examples of non-compliant language:

  • Accept: "Accept and enjoy personalized content" / Reject: "Continue with limited experience" — FAIL
  • Accept: "OK, I agree" / Reject: "Reject all cookies" — PASS (both neutral)

Category 4: Timing and Delay Manipulation

What to check:

  • Does the accept button appear before the reject button?
  • Is there a loading delay on the reject path?
  • Does dismissing the banner (X button) default to accepting?

Category 5: Repeated Prompting (Nagging)

What to check:

  • After rejecting, does the banner reappear on the next page?
  • How frequently is reconsent requested?
  • CNIL recommends no more than every 6 months.

A/B Test Compliance Boundaries

What can be legitimately tested:

Permitted Tests Prohibited Tests
Banner position (top vs bottom) Accept button larger than reject button
Color scheme (both buttons same treatment) Accept button more prominent than reject
Text wording (both options equally neutral) Additional clicks required to reject
Layout arrangement (if equal prominence maintained) Pre-selecting consent purposes in one variant
Icon usage (same for both options) Cookie wall in any variant
Animation/transition style Accept-only first layer with reject buried
Privacy information presentation format Discouraging language for reject option

Audit Procedure

Step 1: Capture All A/B Variants

For each active consent banner experiment:

  • Screenshot all variants across desktop and mobile
  • Record the HTML/CSS for accept and reject elements
  • Document the user flow for accepting and rejecting in each variant
  • Note the traffic split (what percentage of users see each variant)

Step 2: Apply Dark Pattern Assessment

For each variant, score against the 5 categories:

Category Weight Score (0-10) Notes
Visual Asymmetry 25% 0 = equal, 10 = extreme asymmetry
Interaction Asymmetry 30% 0 = equal clicks, 10 = many more clicks to reject
Language Manipulation 20% 0 = neutral, 10 = strongly manipulative
Timing/Delay 15% 0 = no delays, 10 = significant delays on reject
Repeated Prompting 10% 0 = respects choice, 10 = constant nagging

Overall Risk Score: Weighted sum. Score above 3.0 requires remediation. Score above 5.0 requires immediate removal.

Step 3: Compare Consent Rates Across Variants

If a variant achieves significantly higher consent rates through design asymmetry rather than improved information, this is evidence of manipulation:

  • Baseline comparison: Compare consent rates between fully symmetric designs
  • Red flag threshold: If a variant achieves >20% higher consent rate AND has asymmetric design elements, flag for review
  • Statistical significance: Use standard A/B testing statistical methods (chi-squared or Bayesian) but apply the regulatory lens — statistical significance of manipulation is evidence of violation

Step 4: Document and Report

Generate audit report with:

  • Screenshots of all variants
  • Dark pattern scores per variant
  • Consent rate analysis
  • Recommendations for non-compliant variants
  • Remediation timeline

Key Regulatory References

  • GDPR Article 7 — Conditions for consent (equal ease, freely given)
  • ePrivacy Directive Article 5(3) — Consent for cookies and similar technologies
  • CNIL Deliberation No. 2020-091 — Cookie and tracker guidelines
  • CNIL Deliberation No. 2022-013 — Google fine (EUR 150M)
  • CNIL Deliberation No. 2022-014 — Meta fine (EUR 60M)
  • EDPB Guidelines 05/2020 — Consent under Regulation 2016/679
  • EDPB Guidelines 3/2022 — Dark patterns in social media platform interfaces
  • FTC Report on Dark Patterns (September 2022) — US perspective on manipulative design

04 同仓库更多 Skills

mukul975
mukul975/Privacy-Data-Protection-Skills

职场邮件监控合规

workplace-email-privacy

依据 Barbulescu 诉罗马尼亚案(欧洲人权法院大法庭)、EDPB 指引及各国劳动法,实施工作场所电子邮件与互联网监控合规。涵盖可接受使用政策、合理的隐私期待、比例原则测试以及内容监控与元数据监控的区别。关键词:邮件监控、Barbulescu、职场隐私、互联网监控、可接受使用政策、ECHR、比例原则。

人力资源专员人力资源与劳动法咨询
★ 338
mukul975
mukul975/Privacy-Data-Protection-Skills

举报人数据保护合规

whistleblower-data

依据欧盟指令 2019/1937 和 GDPR,为举报(吹哨)系统实施数据保护合规。涵盖匿名举报渠道、举报人与被指控人的身份保护、保存期限限制、访问限制以及反报复措施。涉及成员国转化立法与数据保护机构(DPA)指引。关键词:举报人、指令 2019/1937、匿名举报、身份保护、报复、保存期限、举报渠道。

隐私合规专员数据保护法合规
★ 338
mukul975
mukul975/Privacy-Data-Protection-Skills

供应商终止数据返还与删除

vendor-termination-data

依据 GDPR 第 28(3)(g) 条的供应商终止数据返还与删除流程。涵盖数据提取格式、删除证明要求、过渡规划、残留数据处理以及终止后核验。

隐私合规专员GDPR合规管理
★ 338
mukul975
mukul975/Privacy-Data-Protection-Skills

供应商隐私风险评分

vendor-risk-scoring

面向数据处理者管理的供应商隐私风险分级方法论。涵盖数据量、敏感度、传输地点、认证情况、泄露历史和控制成熟度等评分要素,通过加权风险计算进行风险分级与等级划分。

隐私合规专员供应商准入与绩效管理
★ 338
mukul975
mukul975/Privacy-Data-Protection-Skills

供应商隐私尽职调查

vendor-privacy-due-diligence

依据 GDPR 第 28(1) 条的签约前供应商隐私尽职调查。涵盖风险问卷、技术控制评估、认证审查、数据流分析以及针对处理者合作的书面充分性决策。

隐私合规专员供应商准入与绩效管理
★ 338
mukul975
mukul975/Privacy-Data-Protection-Skills

供应商隐私合规审计

vendor-privacy-audit

依据 GDPR 第 28(3)(h) 条进行现场和远程供应商审计程序。涵盖审计计划、证据收集方法、问题发现分类、整改跟踪以及用于处理者合规验证的审计报告生成。

隐私合规专员GDPR合规管理
★ 338