From 8f14076f359cf865cf9baac57fff1a8da28a040a Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Wed, 3 Aug 2016 15:32:22 -0700 Subject: [PATCH] Feature(analytics): add event to fcc logo click --- common/app/redux/actions.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/common/app/redux/actions.js b/common/app/redux/actions.js index 37abad4b33..71d6c50e02 100644 --- a/common/app/redux/actions.js +++ b/common/app/redux/actions.js @@ -60,7 +60,15 @@ export const addUser = createAction( ); export const updateThisUser = createAction(types.updateThisUser); export const showSignIn = createAction(types.showSignIn); -export const loadCurrentChallenge = createAction(types.loadCurrentChallenge); +export const loadCurrentChallenge = createAction( + types.loadCurrentChallenge, + null, + () => createEventMeta({ + category: 'Nav', + action: 'clicked', + label: 'fcc logo clicked' + }) +); export const updateMyCurrentChallenge = createAction( types.updateMyCurrentChallenge, (username, currentChallengeId) => ({ username, currentChallengeId })