mixpanel-python icon indicating copy to clipboard operation
mixpanel-python copied to clipboard

IP parameter is hardcoded at "0"

Open rboni-dk opened this issue 9 months ago • 1 comments

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?

rboni-dk avatar Mar 13 '25 15:03 rboni-dk

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

benjy44 avatar Oct 15 '25 14:10 benjy44