consent-mode
What it does
This skill checks that Google tags send the right consent signals based on what each visitor has agreed to. It is for site owners who use Google analytics or ads and must follow privacy rules such as GDPR.
When to use it
- ✓When your site uses Google analytics or ad tags in regions with privacy laws.
- ✓When you need to update your tags to the Consent Mode v2 settings.
- ✓When you want to confirm that consent states are sent correctly.
Skill link
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/consent-mode/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up Google Consent Mode v2 on my site so the ad and analytics tags follow the cookie choices visitors make.”
5 new skills a week. 1 minute to read.
How it works
The agent updates the tag setup to send ad user data and ad personalization consent states, and checks that the consent parameter appears in requests to Google.
Technical content (original SKILL.md)
Original text by the author, straight from 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
gcdparameter 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
FAQ
Why does Consent Mode matter?
The skill says it helps follow privacy rules such as GDPR while still allowing privacy-safe measurement.
What are the new consent types?
The skill names ad user data and ad personalization.
How can I check it works?
The skill says the gcd parameter should be present in pings sent to Google services.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 75k
- Ranking position
- #2778
- License
- MIT
- Updated
- 10/31/2026
Comments
- …
More skills from this repository
frontendchecklist
75kChecks frontend code and live pages against 380+ rules for accessibility, speed, SEO and security, using a command-line tool.
frontend-checklist-global
75kAudits a frontend project against all 386 Front-End Checklist rules, and gives a specific fix for each issue found.
404-page
75kChecks that your missing-page screen offers helpful links and returns a real 404 status, to help lost visitors find their way.
about-page
75kReviews whether your site has a clear About page that explains who runs it, to build trust with visitors and search engines.
Similar skills
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
slacrawl
394kLets your agent search and count messages in a local Slack archive, check how fresh that archive is, and refresh it when needed.
goplaces
394kHelps your agent search for places, get their details and reviews, and resolve place names using Google Places, with JSON output for scripts.