Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính75k · #2778

consent-mode

Skill này làm gì

Skill này kiểm tra các thẻ Google có gửi đúng tín hiệu đồng ý dựa trên những gì mỗi người xem đã chấp nhận hay không. Skill dành cho chủ website dùng phân tích hoặc quảng cáo của Google và phải tuân theo quy định bảo mật như GDPR.

Khi nào nên dùng

  • ✓Khi website dùng thẻ phân tích hoặc quảng cáo của Google ở khu vực có luật bảo mật.
  • ✓Khi bạn cần cập nhật thẻ theo thiết lập Consent Mode v2.
  • ✓Khi bạn muốn xác nhận trạng thái đồng ý được gửi đúng.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/consent-mode/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy thiết lập Google Consent Mode v2 trên website của tôi để thẻ quảng cáo và phân tích theo lựa chọn cookie của người xem.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent cập nhật thiết lập thẻ để gửi các trạng thái đồng ý về ad user data và ad personalization, rồi kiểm tra tham số consent xuất hiện trong các yêu cầu gửi tới Google.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

Câu hỏi thường gặp

Vì sao Consent Mode lại quan trọng?

Skill nói nó giúp tuân thủ luật bảo mật như GDPR mà vẫn cho phép đo lường an toàn cho quyền riêng tư.

Các loại đồng ý mới là gì?

Skill nêu ad user data và ad personalization.

Làm sao kiểm tra nó hoạt động?

Skill nói tham số gcd nên có mặt trong các ping gửi tới dịch vụ Google.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2778
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự