Skip to content
Skillpedia
Analysis & spreadsheets75k · #2778

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.md

Copy 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

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/consent-mode/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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 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

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.

repo: thedaviddias/Front-End-Checklist

Popularity

GitHub stars
75k
Ranking position
#2778
License
MIT
Updated
10/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills