diff --git a/src/reducers/cards.js b/src/reducers/cards.js index 6f4add89d20b6936e55646f46771072d8d0904f9..ba1c50d8e28af9d3e7a3c234417ccdc09e0b3f07 100644 --- a/src/reducers/cards.js +++ b/src/reducers/cards.js @@ -1,3 +1,5 @@ +import analytics from '../lib/analytics'; + import decks from '../lib/libraries/decks/index.jsx'; const CLOSE_CARDS = 'scratch-gui/cards/CLOSE_CARDS'; @@ -38,6 +40,11 @@ const reducer = function (state, action) { }); case NEXT_STEP: if (state.activeDeckId !== null) { + analytics.event({ + category: 'how-to', + action: 'next step', + label: `${state.activeDeckId} - ${state.step}` + }); return Object.assign({}, state, { step: state.step + 1 });