Feature(analytics): add event to fcc logo click

This commit is contained in:
Berkeley Martinez
2016-08-03 15:32:22 -07:00
parent 2b32fb3633
commit 8f14076f35

View File

@ -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 })