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

Bypass the middleware on individual requests by calling Mixpanel::Middleware.skip_this_request #80

Closed adimichele closed 11 years ago

adimichele commented 11 years ago

My use case for this was I have some controllers that use segment.io (instead of Mixpanel directly) to syndicate events and I needed to not insert the Mixpanel JS in those controllers only. I hacked together my own solution, but figured it would be nice if that functionality was in the gem!

zevarito commented 11 years ago

Merged, thanks.