third-party-cookies
它能做什么
这项技能检查访客所在网站以外的域名设置了哪些 Cookie。适用于需要遵守隐私法规并减少追踪的网站所有者。
适用场景
- ✓当网站加载的广告、分析或小组件会设置其他公司的 Cookie 的时候。
- ✓当网站在开始追踪前没有 Cookie 同意步骤的时候。
- ✓当你为 GDPR 或 CCPA 等隐私规则准备网站的时候。
技能链接
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/third-party-cookies/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的网站加载了很多外部脚本。请帮我检查哪些脚本会设置追踪 Cookie,以及是否需要用户同意。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会审查外部域名的 Cookie 和网络信息。然后它会建议删除不需要的脚本,或在它们设置 Cookie 之前征求用户同意。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Avoid third-party cookies
Third-party cookies enable advertising networks to build detailed behavioral profiles of users across every site they visit — without users being aware. Regulatory penalties for non-compliance with GDPR reach up to 4% of global annual turnover.
Quick Reference
- Third-party cookies are set by a domain other than the one the user is visiting — typically by ad networks, analytics, or embedded widgets
- Chrome is removing third-party cookie support and all major browsers now block or restrict them
- Use the Network DevTools panel to identify
Set-Cookieheaders from third-party domains - GDPR (EU), CCPA (California), and PECR (UK) require informed consent before setting non-essential cookies
- Alternatives: first-party data collection, privacy-preserving analytics (Plausible, Fathom), server-side tracking
Check
Open the browser DevTools Network panel and Application panel (Cookies section). Identify all cookies set by domains other than the current domain. Check for tracking pixels, analytics scripts, and advertising tags that set cross-site cookies.
Fix
Audit and remove unnecessary third-party scripts. Replace cross-site tracking with privacy-preserving first-party analytics. Ensure any remaining third-party cookies are gated behind explicit user consent via a cookie consent mechanism.
Explain
Explain what third-party cookies are, how they enable cross-site tracking, why browsers are blocking them, and how GDPR/CCPA regulate their use.
Code Review
Review server config, headers, forms, and integration points related to Avoid third-party cookies. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/privacy/third-party-cookies
常见问题
什么是第三方 Cookie?
它是由访客所在网站以外的域名设置的 Cookie,通常来自广告网络或分析工具。
这与哪些隐私法律有关?
这项技能提到了欧盟的 GDPR、加州的 CCPA 以及英国的 PECR。
什么可以替代跨站追踪?
这项技能建议优先使用第一方数据、注重隐私的分析工具(例如 Plausible 或 Fathom),以及服务器端追踪。
详情
作者的原始描述
Use when reviewing a website for privacy compliance, third-party resource loading, or cookie consent implementation.
热度
- GitHub 星标
- 75k
- 排名
- #3056
- 许可证
- MIT
- 更新时间
- 2026/10/31
评论
- …
同一仓库的更多技能
frontendchecklist
75k使用命令行工具,依据 380 多条关于无障碍、速度、SEO 和安全的规则,检查前端代码和线上页面。
frontend-checklist-global
75k依据全部 386 条 Front-End Checklist 规则审查前端项目,并为发现的每个问题给出具体修复方法。
404-page
75k检查你的页面缺失提示是否提供有用的链接,并返回真正的 404 状态,帮助迷路的访客找到方向。
about-page
75k审查你的网站是否有清晰的关于页面,说明由谁运营,以建立访客和搜索引擎的信任。