Skip to main content
Finance & LegalLegal37 lines

Consent-aware Web Analytics Controls

Implement and test optional tracking categories, choice persistence and withdrawal against the applicable consent policy.

Quick Summary7 lines
Use this skill to connect a product's approved privacy choices to actual browser behavior. Establish the applicable regions, audience, technologies and legal review owner. Consent rules and exceptions vary; do not turn a generic banner pattern into a universal legal conclusion.

## Key Points

- [ICO cookies and similar technologies](https://ico.org.uk/for-organisations/direct-marketing-and-privacy-and-electronic-communications/guide-to-pecr/cookies-and-similar-technologies/)
skilldb get legal-skills/cookie-consent-implementationFull skill: 37 lines
Paste into your CLAUDE.md or agent config

Consent-aware Web Analytics Controls

Use this skill to connect a product's approved privacy choices to actual browser behavior. Establish the applicable regions, audience, technologies and legal review owner. Consent rules and exceptions vary; do not turn a generic banner pattern into a universal legal conclusion.

Map the real data flows

Inventory network activity before designing the banner. List scripts, cookies, local storage, pixels, embedded media and server-side event forwarding. Record purpose, recipient, lifetime, identifiers and whether each activity is necessary for a requested service or optional under the reviewed policy.

Include tag managers and third-party widgets, which can load additional trackers indirectly. A cookieless request can still process personal data or access a device; the absence of a cookie alone does not settle the question.

Define categories with understandable explanations. Determine the default behavior for unknown region, unreadable storage and failed preference loading. For an opt-in implementation, keep optional collection off until an appropriate valid choice is available.

Implement the state machine

Represent unknown, accepted categories, rejected categories and withdrawn choices explicitly. Version the policy so material changes can be handled according to the applicable requirements. Persist only the information necessary to remember and demonstrate the choice.

Make accept, reject and granular controls usable by keyboard and assistive technology. Avoid preselected optional choices or interface wording that disguises refusal. Keep a persistent route to change the preference later.

Withdrawal must affect future collection, including already initialized SDKs and server forwarding. Stop or reconfigure the relevant components and clear associated storage where required and technically appropriate. Do not imply that deleting a browser cookie automatically deletes data already held by a provider.

Test observable behavior

Use a fresh browser profile and capture requests before interaction, after rejection, after partial acceptance and after withdrawal. Repeat after reload, navigation, expiry and an updated preference. Check mobile layouts, embedded content and delayed tag loads.

A hidden banner is not proof that collection is disabled. Assert the absence of prohibited requests and identifiers, not just the presence of a saved preference. Test failures in storage and consent services so optional tracking does not turn on accidentally.

Deliver a technology inventory, approved policy mapping, implementation states and network evidence. Record unresolved legal interpretations and provider limitations explicitly. Release only the version whose behavior was tested; changing a tag-manager configuration can invalidate the result.

References

Install this skill directly: skilldb add legal-skills

Get CLI access →

Related Skills

Corporate Governance

Triggers when users need guidance on corporate governance including board structure, fiduciary duties, corporate minutes, resolutions, shareholder agreements, voting rights, and governance best practices. Use when keywords like "board," "directors," "fiduciary," "minutes," "shareholder agreement," "corporate governance," or "resolution" appear.

Legal•259L

Data Protection

Triggers when users need guidance on implementing data protection measures including encryption, access controls, data classification, retention policies, incident response plans, and vendor management. Use when keywords like "encryption," "access control," "data classification," "retention policy," "incident response," "vendor management," or "data security" appear.

Legal•279L

Dispute Resolution

Triggers when users need guidance on resolving legal disputes including negotiation, mediation, arbitration, litigation strategy, demand letters, settlement, or dispute prevention. Use when keywords like "dispute," "lawsuit," "arbitration," "mediation," "settlement," "demand letter," "litigation," or "conflict resolution" appear.

Legal•269L

Employment Law

Triggers when users need guidance on employment law topics including hiring compliance, at-will employment, discrimination, wage and hour rules, termination procedures, employee vs contractor classification, non-competes, and workplace policies. Use when keywords like "employee," "hiring," "termination," "contractor," "non-compete," "discrimination," or "wage" appear.

Legal•216L

Intellectual Property

Triggers when users need guidance on intellectual property protection including patents, trademarks, copyrights, trade secrets, open source licensing, IP strategy for startups, and IP enforcement. Use when keywords like "patent," "trademark," "copyright," "trade secret," "IP," "open source license," or "intellectual property" appear.

Legal•210L

Privacy Gdpr

Triggers when users need guidance on privacy law, data protection regulations, GDPR compliance, CCPA/CPRA, privacy policies, consent management, data mapping, DPIAs, breach notification, or international data transfers. Use when keywords like "privacy," "GDPR," "CCPA," "personal data," "consent," or "data protection" appear.

Legal•204L