diff --git a/src/actions/actionToggleGridMode.tsx b/src/actions/actionToggleGridMode.tsx index e99e3a015..152a9da9a 100644 --- a/src/actions/actionToggleGridMode.tsx +++ b/src/actions/actionToggleGridMode.tsx @@ -2,10 +2,12 @@ import { CODES, KEYS } from "../keys"; import { register } from "./register"; import { GRID_SIZE } from "../constants"; import { AppState } from "../types"; +import { trackEvent } from "../analytics"; export const actionToggleGridMode = register({ name: "gridMode", perform(elements, appState) { + trackEvent("view", "mode", "grid"); return { appState: { ...appState, diff --git a/src/actions/actionToggleZenMode.tsx b/src/actions/actionToggleZenMode.tsx index 38da9cdef..5ff494ea2 100644 --- a/src/actions/actionToggleZenMode.tsx +++ b/src/actions/actionToggleZenMode.tsx @@ -1,9 +1,12 @@ import { CODES, KEYS } from "../keys"; import { register } from "./register"; +import { trackEvent } from "../analytics"; export const actionToggleZenMode = register({ name: "zenMode", perform(elements, appState) { + trackEvent("view", "mode", "zen"); + return { appState: { ...appState,