chore: add ga for most actions (#4829)

This commit is contained in:
David Luzar
2022-03-28 14:46:40 +02:00
committed by GitHub
parent e940aeb1a3
commit f242721f3b
40 changed files with 221 additions and 93 deletions

View File

@ -262,9 +262,7 @@ export const actionLink = register({
commitToHistory: true,
};
},
trackEvent: (action, source) => {
trackEvent("hyperlink", "edit", source);
},
trackEvent: { category: "hyperlink", action: "click" },
keyTest: (event) => event[KEYS.CTRL_OR_CMD] && event.key === KEYS.K,
contextItemLabel: (elements, appState) =>
getContextMenuLabel(elements, appState),