geoIp Localization issues
Hello @lindesvard I just added openpanel react native sdk on my app to start tracking events from my mobile app. But I noticed that the country and city data reported to the dashboard are wrong. My users are mostly based in Africa but for some reason, it shows remote countries. I cant tell if its the sdk the issue or the GeoIp API being confused. Before I have Firebase analytics and the location country was fine. That's what made me tick. Any info on this please?
Thanks
Hey, can you provide me with a IP address that you know is from a expected country and I'll play around.
Sure @lindesvard
So I have these devices (iPhone) in Cameroon (CM). They are on 4G network.
In openpanel, when I search for those users, the country is labelled as seen below which is wrong.
I already updated the OpenPanel containers to the latest release but no luck. How can we check this?
User1
IP: 154.72.163.131
When I check his IP on the GeoIp API container, I get the correct location (Cameroon)
But when I check the same user in openPanel, it says Brazil
User2
IP: 41.202.207.4
Same thing. On GeoIp, all is good (CM)
But still, Openpanel says the user in the US
I have not tested this from Android yet. Ill do and update here. Because, its most likely that the issue is the react native SDK. Thanks
Thanks will look tomorrow. Might be that I need to update the geoip version to get the latest
Thanks I already have the latest geoip container in my selfhosted env. its from my self hosted geoip container that I queried those IPs as you see in the screenshots
I just tested this issue in the cloud version and its the same issue. For some countries, there is indeed an issue. mostly in Africa IMO @lindesvard any thougths on this?
I have given this a go and our api is resolving these IPs correct so not really sure where it goes wrong. Will keep this open and continue looking at this
That’s why as I was mentioning, this issue could come from the react native sdk. I remember in the past, getting de user ip on react native was a pain.
If the ip sent by the sdk is not the user’s ip seen from websites like whatsmyip.com, then the sdk is doing something wrong.
Btw im using expo for my rn app.
Well, then its a react-native problem tbh since we don't get the IP https://github.com/Openpanel-dev/openpanel/blob/main/packages/sdks/react-native/index.ts
Or the user might have VPN? Or we get the wrong IP in our gateway. Will play around with this later this week
got you. Just for info, The users dont have VPN. Also if you need me to test something out, just let me know
I have the same problem; my traffic is from Latin America and only these countries appear.
My problem was that I was using Cloudflare without the correct configuration. Here's my solution:
https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/