fix(mixpanel): Correctly associate events with distinct_ids

This commit is contained in:
Ben Gotow 2015-08-25 11:33:36 -07:00
parent 7ebf9afac0
commit 3a98bc5d90

View file

@ -70,7 +70,10 @@ AnalyticsStore = Reflux.createStore
track: (action, data={}) ->
_.defer =>
# send to the analytics service
@analytics.track(action, _.extend(data, accountId: AccountStore.current()?.id))
@analytics.track(action, _.extend(data, {
accountId: AccountStore.current()?.id
distinct_id: AccountStore.current()?.id
}))
# send to the logs that we ship to LogStash
console.debug(printToConsole, {action, data})