From 3a98bc5d9022d756a6b08f85495e214c40ded28f Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 25 Aug 2015 11:33:36 -0700 Subject: [PATCH] fix(mixpanel): Correctly associate events with distinct_ids --- src/flux/stores/analytics-store.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/flux/stores/analytics-store.coffee b/src/flux/stores/analytics-store.coffee index 09ebd5067..3b0aa4ea6 100644 --- a/src/flux/stores/analytics-store.coffee +++ b/src/flux/stores/analytics-store.coffee @@ -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})