POC: Anonymous analytics tracking with opt-out consent#2275
Open
Leemo94 wants to merge 2 commits intonovasamatech:developfrom
Open
POC: Anonymous analytics tracking with opt-out consent#2275Leemo94 wants to merge 2 commits intonovasamatech:developfrom
Leemo94 wants to merge 2 commits intonovasamatech:developfrom
Conversation
- 25+ PostHog events across swaps, staking, transfers, DApps, governance - Direct HTTP POST to PostHog (no SDK dependency) - Opt-out by default with consent prompt on first launch - PII suppression: no IP, no device fingerprints, no person profiles - Ephemeral session IDs (per launch, rotated on opt-out) - Settings toggle for Anonymous Analytics - Value bucketing for amounts, durations, and slippage - Cross-platform event parity between iOS and Android
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.
Purpose
A working proof of concept for a privacy-conscious, opt-out analytics layer. The goal is to give the team
something concrete to evaluate before decisions are made on tooling, event scope, or rollout strategy.
Solution
Privacy model
Backend
/capture/usingOkHttpClient— no PostHog SDK dependencyendpoint
Event coverage (28 wired, 35 defined)
App lifecycle · Onboarding & wallet creation · Swaps · Staking · Unstaking · Transfers · DApp browser ·
Governance voting · Tab switching · Banners · Nova Card / NFTs
Caveats
deliberately includes a wide range of events to make the conversation concrete; the number, selection, and
property shapes of events should all be considered open for discussion rather than a final proposal.
decisions (org ownership, data center, retention, possible self-hosting, final consent copy) are deliberately
left for the team.