mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-10 02:03:07 +08:00
fix(mixpanel): Correctly associate events with distinct_ids
This commit is contained in:
parent
7ebf9afac0
commit
3a98bc5d90
1 changed files with 4 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue