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

How to set the user id? #10

Closed miguelperez closed 13 years ago

miguelperez commented 13 years ago

The javascript library allow you to set a visitors ID...

 mpmetrics.identify("USERNAME_HERE_OR_ANY_STRING")

I was looking at the code, and could not find this. Can this be doable with this implementation?

LogicWolfe commented 13 years ago

Yep, assuming you had this library initialized to a @mixpanel object you'd just use @mixpanel.append_api("identify", "USERNAME_HERE_OR_ANY_STRING")