module Stealth::MixpanelSessionTracking
Public Instance Methods
set(flow:, state:)
click to toggle source
Calls superclass method
# File lib/stealth-mixpanel/state_transitions.rb, line 3 def set(flow:, state:) retval = super if ENV['MIXPANEL_PROJECT_TOKEN'].present? mixpanel = Stealth::Mixpanel.new mixpanel.tracker.track(user_id, 'State Change', { 'flow' => flow, 'state' => state }) end retval end