zevarito/mixpanel — pull request #63 by etagwerker (2012-12-21 19:31:35+00:00)
Title: Fix for Issue #59 for location tracking based on $ip parameter

Hey @zevarito!

These commits solve the location tracking issue described in Issue #59.

It's a proposed implementation, with no additional tests. I just want to see what you think about it.

I've tested it locally and in production and it works.

It allows you to do this:

m = Mixpanel::Tracker.new MIXPANEL_API_KEY
m.set(seller_id, seller.to_mixpanel, { "$ip".to_sym => "186.137.140.183" } )

Thoughts?

I'd appreciate any comments on the code and potential tests.