<https://github.com/rudderlabs/rudder-transformer/...
# support
e
https://github.com/rudderlabs/rudder-transformer/issues/3036 I have explained and created an issue here related to Mixpanel wrong location mapping. Can anyone review this?
m
Hey There! 👋 Your message has been received by the RudderStack team. Our standard customer support hours are 9-6 PM EST, but we will forward this request to your Technical Account Manager, and they will get back to you shortly. Please use the thread for any additional comments.
I this is not actually an issue. I am checking with the team for the exact way to send the user_ip to the destination instead of the server_ip.
e
It's an issue as it overrides the actual info that we send
m
I mean that there should be a way to over-write the ip address, which I think there is.
e
In the merge event, no as it creates the payload itself.
m
You can set the context.ip with the userId and pass it as a part of the event and this should overwrite the server_ip with this value. So wrt to RudderStack are you using a track event or an identify event?
e
It's
type=identify
event. We already sent the IP in the context. But it is removed at RS'e end. Feel free to check the snippet I shared where it's removed
Copy code
{
  "_metadata": {
    "nodeVersion": "20.10.0"
  },
  "anonymousId": "6ae7d1cb-98da-4add-849c-8fc04f11234d",
  "channel": "server",
  "context": {
    "ip": "103.46.200.86",
    "library": {
      "name": "analytics-node",
      "version": "2.0.6"
    },
    "traits": {
      "address": {
        "city": "Delhi",
        "country": "IN",
        "state": "DL"
      },
      "company": {
        "cf_gumlet_org_id": "***",
        "id": "****",
        "name": "Anshul",
        "website": "https://gumlet.com"
      },
      "createdAt": "2024-01-29T11:14:08.121Z",
      "email": "****",
      "external_id": "***",
      "firstName": "Anshul",
      "first_campaign": "Branding",
      "first_medium": "Direct Traffic",
      "first_source": "Website",
      "latest_campaign": "Branding",
      "latest_medium": "Direct Traffic",
      "latest_source": "Website",
      "loginType": "local",
      "name": "Anshul",
      "signup_date": "2024-01-29T11:14:08.121Z",
      "signup_done": true,
      "timezone": "Asia/Kolkata"
    }
  },
  "messageId": "7643f780-1063-4fba-8c1f-ca01f565f283",
  "originalTimestamp": "2024-01-29T11:14:08.121Z",
  "rudderId": "856f562b-4ea3-46d8-8322-64c2679e77bb",
  "sentAt": "2024-01-29T11:14:08.922Z",
  "traits": {
    "address": {
      "city": "Delhi",
      "country": "IN",
      "state": "DL"
    },
    "company": {
      "cf_gumlet_org_id": "*****",
      "id": "****",
      "name": "Anshul",
      "website": "https://gumlet.com"
    },
    "createdAt": "2024-01-29T11:14:08.121Z",
    "email": "*****",
    "external_id": "****",
    "firstName": "Anshul",
    "first_campaign": "Branding",
    "first_medium": "Direct Traffic",
    "first_source": "Website",
    "latest_campaign": "Branding",
    "latest_medium": "Direct Traffic",
    "latest_source": "Website",
    "loginType": "local",
    "name": "Anshul",
    "signup_date": "*****",
    "signup_done": true,
    "timezone": "Asia/Kolkata"
  },
  "type": "identify",
  "userId": "******"
}
This function doesn't use IP directly especially in case of $merge
m
Oh ok, let me ask the team on this and get back to you.
e
Okay
m
Hey akbansa, I see you chatting with the team on the github issue. So I am closing this issue for now.
e
Cool
Thanks