zevarito / mixpanel

Simple lib to track events in Mixpanel service. It can be used in any rack based framework.
MIT License
273 stars 84 forks source link

distinct_id #43

Closed jacquescrocker closed 12 years ago

jacquescrocker commented 12 years ago

Might be worth documenting the need to send "distinct_id" as a property when sending events via resque. Otherwise mixpanel can't associate the event with a user.

thanks

zevarito commented 12 years ago

Hi @railsjedi,

Send distinct_id is a good practice, but the user should have been identified by IP address even when you perform async, it should be taked from the ENV. That didn't work for you?

jacquescrocker commented 12 years ago

ah, ok. I was testing it on local so the IP was 127.0.0.1

on production is IP address good enough to identify users though?

thanks for the heads up!

zevarito commented 12 years ago

Well, it is an strategy, of-course if you have an ID identifying your users will be better to use that.

Cheers.