Add GA4 event tagging across the atlas#242
Merged
Merged
Conversation
- New js/analytics.js: single gtag entry point with safe trackEvent() wrapper (console-logs on localhost, debug_mode on /dev paths) - GA4 base tag now on all 14 HTML entry points (was index.html only) - Custom events: layer_toggle, search_select, feature_inspect, map_export, geolocate, measure_use, terrain_3d_toggle, atlas_load, permalink_resolve, share_action - Privacy policy updated to disclose interaction events; cadastral search selections are recorded by type only, never plot identifiers - docs/analytics-plan.md: taxonomy, GA4 console setup, verification
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Contributor
|
Related issue: #15 |
planemad
approved these changes
Jul 11, 2026
planemad
left a comment
Contributor
There was a problem hiding this comment.
@marlonrodrigues fantastic, and thank you for updating the privacy policy for transparency 💯
Overall, I'm not a big fan of forcing additional data collection on users without a plan on how to use the data, but thats a chicken and egg problem. Let's try this out for a time boxed period (6 months?) to see what we can find and later evaluate if we should keep tracking turned on or turn off by default.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing Strategy
Will review on GA once code is running
Live preview: https://amche.in/dev/