Skip to content

Conversation

@RomanDenysov
Copy link
Owner

Summary

  • Add @consentify/gtm package — thin adapter bridging consentify consent state to Google Consent Mode v2
  • enableConsentMode(instance, options) maps consentify categories to Google consent types (ad_storage, analytics_storage, etc.) and keeps them in sync
  • SSR-safe, zero additional dependencies, re-exports @consentify/core
  • 13 tests covering SSR guard, bootstrapping, default/update calls, mapping, dispose, and clear
  • Updated root README: added GTM to packages table, removed from roadmap

Test plan

  • pnpm -r build — all packages build clean
  • pnpm test — 61 tests pass (13 new GTM + 48 existing core)
  • Manual: verify types have no any leaks

🤖 Generated with Claude Code

Thin adapter that bridges consentify consent state to Google Consent
Mode v2 via gtag('consent', 'default'|'update', ...). Maps consentify
categories to Google consent types (ad_storage, analytics_storage, etc.)
and keeps them in sync as consent changes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@RomanDenysov RomanDenysov merged commit b0232a9 into main Feb 7, 2026
2 checks passed
@RomanDenysov RomanDenysov deleted the feat/gtm-consent-mode branch February 7, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant