Skip to content

POC: Anonymous analytics tracking with opt-out consent#2275

Open
Leemo94 wants to merge 2 commits intonovasamatech:developfrom
Leemo94:feature/analytics-tracking
Open

POC: Anonymous analytics tracking with opt-out consent#2275
Leemo94 wants to merge 2 commits intonovasamatech:developfrom
Leemo94:feature/analytics-tracking

Conversation

@Leemo94
Copy link
Copy Markdown

@Leemo94 Leemo94 commented Apr 8, 2026

⚠️ Requires ToS update

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

  • Opt-out by default — consent prompt on first launch, Settings toggle afterwards
  • Ephemeral session ID per launch, rotated on opt-out — no persistent user identifier
  • PII suppression: IP stripping, no device fingerprints, no person profiles, 13+ PostHog properties blanked
  • Value bucketing — raw amounts, durations, and slippage are converted to coarse buckets before transmission

Backend

  • PostHog, sent via direct HTTP POST to /capture/ using OkHttpClient — no PostHog SDK dependency
  • Host URL and API key are config values — swapping provider or self-hosting would only require changing the
    endpoint
  • Currently pointed at a sandbox project

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

  • This is a proof of concept — the final implementation will almost certainly look different. The branch
    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.
  • The PostHog project and API key currently in the branch are dev-sandbox placeholders. Production infrastructure
    decisions (org ownership, data center, retention, possible self-hosting, final consent copy) are deliberately
    left for the team.

Leemo94 and others added 2 commits March 25, 2026 17:54
- 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
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