Skip to content

fix(analytics): disable geoIP enrichment on all event paths - #11

Merged
willwade merged 1 commit into
mainfrom
fix/analytics-geoip-disable
Aug 20, 2026
Merged

fix(analytics): disable geoIP enrichment on all event paths#11
willwade merged 1 commit into
mainfrom
fix/analytics-geoip-disable

Conversation

@willwade

Copy link
Copy Markdown
Contributor

What

  • Add : true to:
    • capture() defaults
    • crashProperties() (crash reports bypass capture())
    • the deferred-crash replay in flushPendingCrash()
  • Document it in analytics-events.json

Why (from the 2026-08-20 live PostHog audit)

PostHog Cloud enriched Android events with , , and /longitude (city + postcode + lat to 4 dp) derived from the client IP — despite anonymize IPs being ON. Violates RFC 0001's no-location promise; the per-event flag is the only Cloud-level control. No code path may send an event without it.

PostHog Cloud was deriving $geoip_* (city, postal code, lat/lon) from the
client IP on every event — violating RFC 0001's no-location promise. Add
$geoip_disable to capture() defaults, crashProperties() and the deferred
crash replay so no path sends location.

Signed-off-by: will wade <willwade@gmail.com>
@willwade
willwade merged commit 51b3b91 into main Aug 20, 2026
2 checks passed
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