mixpanel / mixpanel-python

Official Mixpanel Python library.
https://mixpanel.com/help/reference/python
Other
103 stars 85 forks source link

Pass `ip` event property #109

Closed ale7canna closed 2 years ago

ale7canna commented 2 years ago

Since the current Consumer._write_request implementation, it's not possible so far to keep track of events' IP since it's overridden by default

        params = {
            'data': json_message,
            'verbose': 1,
            'ip': 0,
        }

https://github.com/mixpanel/mixpanel-python/blob/10f9c3afa0ac9aeb97e4badf2523bb576614f73a/mixpanel/__init__.py#L605

it's somehow possible to change this default behavior in the next releases?

Thanks

ale7canna commented 2 years ago

Okay, I just tried using $ip field in properties, and it all seems working. Thanks anyway :)