You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bluenaute edited this page Nov 26, 2012
·
2 revisions
Put this in your application controller:
before_filter:initialize_mixpaneldefinitialize_mixpanelifrequest.path.include?("admin")#skip for adminrequest.env["HTTP_SKIP_MIXPANEL_MIDDLEWARE"]="true"else@mixpanel ||= Mixpanel::Tracker.new(MIXPANEL_TOKEN,{:env=>request.env,:persist=>true})endend