Skip to content

Apply QA context to automatic Google Analytics events - #153

Merged
aronchick merged 1 commit into
mainfrom
fix/legacy-ga-qa-context
Sep 10, 2026
Merged

aronchick merged 1 commit into
mainfrom
fix/legacy-ga-qa-context

Conversation

@aronchick

@aronchick aronchick commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Automatic Google Analytics engagement events lacked the QA/internal markers attached to explicit pageviews. Share the existing allowlisted session context with destination configuration so automatic events inherit debug_mode, analytics_test, is_internal and traffic_type. Ordinary traffic still omits debug_mode entirely; consent, DNT, sanitized URLs and identity ownership remain unchanged.

All 12 local release gates pass with 17 analytics tests, zero warnings and audit 0. A real Google SDK comparison reproduced unmarked automatic engagement on main and verified the fix for normal, QA, internal, decline and DNT modes. All collector requests were intercepted; this verifies native serialization without claiming Google storage or filter enforcement. No filter settings changed.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

@aronchick
aronchick merged commit 2d07df9 into main Sep 10, 2026
2 checks passed
@aronchick
aronchick deleted the fix/legacy-ga-qa-context branch September 10, 2026 18:38
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