Class: TestTrack::Analytics::MixpanelClient

Inherits:
Object
  • Object
show all
Defined in:
app/models/test_track/analytics/mixpanel_client.rb

Instance Method Summary collapse

Instance Method Details

#track(analytics_event) ⇒ Object



3
4
5
# File 'app/models/test_track/analytics/mixpanel_client.rb', line 3

def track(analytics_event)
  mixpanel.track(analytics_event.visitor_id, analytics_event.name, analytics_event.properties)
end