Hi everyone! I’m aware that mixpanel is now using maxmind service for geolocation detection. Currently we didn’t send the IP address by default in our current implementation. Does anyone know how to send the IP address to all events from Mixpanel SDK but still keeping the country and city?
Leonardo F. has marked ticket #304 as closed.
Hi Novita, I'm Leo from Mixpanel Support team. Happy to assist! Are you using a server or client-side SDKs? Asking because client-side SDKs do all these automatically so you do not have to send the IP. We use the IP of the incoming request, set the geolocation then discard the IP for privacy reasons. Looking forward to hearing from you. Kind regards, Leonardo Fratini Support @ Mixpanel Barcelona | Spain
Hello Novita! Mixpanel Support team here —this is an automated follow-up regarding the question you sent in to us Sending IP address with events while preserving geolocation . It's been a few days since we last heard from you, and we wanted to check in with you to see if you have any additional questions. Feel free to respond to this email if you do! If we don't get a response back from you in a few days, we’ll check back in to see how you are doing. Hoping to resolve your issue soon! If you have any additional questions related to a separate topic, we’d be happy to help with that as well — just send a new email to support@mixpanel.com, and one of us will get an answer to you as soon as we can. Best, Leonardo Mixpanel Support
Asking because client-side SDKs do all these automatically so you do not have to send the IP. We use the IP of the incoming request, set the geolocation then discard the IP for privacy reasons.
I need this for both BE and FE tracker, but I believe all will be handled from client side. I know that the current geolocation is mapped automatically, but we still need the IP info for security reasons and fraud checking 🙏
Hi Novita, If you need the IP Address you will need to start sending and ingest IP Addresses as a property from your implementation. Mixpanel doesn't keep IP Addresses but you can still send them as regular properties in your events. Kind regards, Leonardo Fratini Support @ Mixpanel Barcelona | Spain
Hi Leonardo, The problem is our FE don’t have the IP address data. Previously we get the data from Amplitude automatically along with the location info (city, region, etc)
Hi Novita, In Mixpanel:
We use the request IP to set $city, $region, mp_country_code, then .
If you also need to store the IP, you must send it as a custom property (e.g. "client_ip"), not ip / $ip.
Since your FE can’t see the IP, the usual pattern is:
Backend reads the client IP from the incoming request.
Backend sends the event to Mixpanel with:
"ip": client IP (for geolocation parsing, will be dropped)
"client_ip": client IP (or similar name, which will be stored for fraud/security checks)
That way you preserve Mixpanel geolocation and still keep the IP for your own analysis. Kind regards, Leonardo Fratini Support @ Mixpanel Barcelona | Spain
