diff --git a/state/history.ts b/state/history.ts index 1fd7fe6b5..041364fc0 100644 --- a/state/history.ts +++ b/state/history.ts @@ -1,4 +1,5 @@ import { Data } from 'types' +import * as gtag from 'utils/gtag' import { BaseCommand } from './commands/command' import storage from './storage' @@ -11,6 +12,13 @@ class History { private _enabled = true execute = (data: T, command: BaseCommand) => { + gtag.event({ + action: command.name, + category: command.category, + label: '', + value: 0, + }) + command.redo(data, true) if (this.disabled) return