mixpanel-python
mixpanel-python copied to clipboard
IP parameter is hardcoded at "0"
Although the SDK is probably more useful that way, I need to capture the IP-based location for my use case. Could it be configurable?
You could set the ip that you want in the meta parameter like:
mp.people_set(
distinct_id='user123',
properties=properties,
meta={
'$ip': 'x.x.x.x'
}
)
This overrides the harcoded 'ip': 0 and shows the proper location in mixpanel