Option to skip IP geolocation for server-side events

Aperta
#678 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@itsaryanchauhan ci sta già lavorando.

Dal 30/11/2026.

  • #692 di @itsaryanchauhan — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
analytics

Direzione di ricerca

Start by tracing how server-side events handle the __ip property and where event location is looked up; the issue does not name files or tests, so locate those entry points in the repository first. Compare how track and identify process IP data, then determine where an explicit geolocation opt-out would be applied. Done means server-side events can skip geolocation and leave location empty or use the profile's last known location.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Events sent from a backend are geolocated from the backend's IP, so unless the user has an active session, every server-side event (purchases, renewals, emails) lands in the data centre's city and country. The only workaround is overriding __ip with a private address such as 127.0.0.1 so the lookup comes back empty, and __ip is read only for track, not identify.

Request: an explicit opt-out, e.g. a __geo: false property or a request header, that skips geolocation and leaves the location empty (or falls back to the profile's last known location). Today we send a fake __ip on every server-side request.

Lingua principale
TypeScript
Stelle
7.3k
Fork
552
Merge medio
1g 2h
PR unite (30g)
18

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Openpanel-dev/openpanel

Tutte le issue di Openpanel-dev/openpanel

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.