Skip to content

feat(analytics): implement GA4 Consent Mode v2 with gatgService singl…#33

Merged
dmaman86 merged 1 commit into
mainfrom
feat/gatg-consent-mode-v2
May 14, 2026
Merged

feat(analytics): implement GA4 Consent Mode v2 with gatgService singl…#33
dmaman86 merged 1 commit into
mainfrom
feat/gatg-consent-mode-v2

Conversation

@dmaman86

Copy link
Copy Markdown
Owner

…eton

  • replace loadGtag function with gatgService object singleton
  • separate concerns: initConsentMode, load, grantConsent
  • add ConsentParams type and proper gatg overloads to global.d.ts
  • initialize consent mode at app startup in main.tsx
  • always load GA script on mount, grant consent when user accepts
  • update tests to cover new gatgService API

…eton

- replace loadGtag function with gatgService object singleton
- separate concerns: initConsentMode, load, grantConsent
- add ConsentParams type and proper gatg overloads to global.d.ts
- initialize consent mode at app startup in main.tsx
- always load GA script on mount, grant consent when user accepts
- update tests to cover new gatgService API
@dmaman86 dmaman86 merged commit 4068c04 into main May 14, 2026
1 check passed
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants