@tank/web-analytics-consent

Configure GDPR-compliant analytics triggers and Cookie Mode v2 for websites.

1|1|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/tankpkg/skills --skill tank-web-analytics-consent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: @tank/web-analytics-consent
Source: https://github.com/tankpkg/skills/tree/main/skills/web-analytics-consent
Command: npx skills add https://github.com/tankpkg/skills --skill tank-web-analytics-consent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the implementation of privacy-compliant web analytics and cookie consent management, ensuring user privacy while gathering essential website data.

Core Features & Use Cases

  • Tool Selection: Guides you through choosing the right analytics tools (PostHog, GA4, Plausible, etc.) based on your needs and privacy requirements.
  • Consent Management: Integrates with cookie consent banners (like vanilla-cookieconsent) to manage user preferences according to GDPR and CCPA.
  • Consent Mode v2: Implements Google Consent Mode v2 for enhanced data recovery and compliance with Google's advertising policies.
  • Use Case: Implement a GDPR-compliant analytics setup for your website, ensuring no tracking scripts load until the user explicitly consents, and correctly configure Google Consent Mode v2 for GA4 and Google Ads.

Quick Start

Configure your website's analytics and cookie consent using the provided guidance and examples.

Frequently Asked Questions about @tank/web-analytics-consent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement Google Consent Mode v2 with GA4 for GDPR compliance?

Implementing Google Consent Mode v2 with GA4 requires a consent-first architecture where no tracking scripts load until the user explicitly consents. This approach ensures GDPR compliance while enabling enhanced data recovery for Google Ads.

What is the best way to set up privacy-first web analytics with cookie consent?

The best way to set up privacy-first web analytics is by integrating a cookie consent banner that manages user preferences according to GDPR and CCPA, ensuring tracking scripts only execute after explicit consent is granted.

How does cookie consent management work with PostHog and Plausible?

Cookie consent management for tools like PostHog and Plausible works by selecting analytics tools based on privacy requirements, then integrating a consent banner to block script execution until the user provides explicit consent.

Do I need Google Consent Mode v2 to comply with Google's advertising policies?

Yes, implementing Google Consent Mode v2 is required to comply with Google's advertising policies. It addresses ePrivacy regulations through a consent-first architecture, enabling data recovery while maintaining user privacy.

Can I use vanilla-cookieconsent to manage GDPR and CCPA tracking preferences?

Yes, you can integrate vanilla-cookieconsent to manage user tracking preferences according to GDPR and CCPA. This ensures no analytics scripts load until the user explicitly consents, maintaining privacy compliance.

Why does my GA4 tracking load before users accept the cookie consent banner?

GA4 tracking loads before consent if a consent-first architecture is not implemented. Proper integration requires blocking tracking scripts until explicit consent is granted, ensuring compliance with GDPR and ePrivacy regulations.