Skip to content

Commit

Permalink
Update: テレメトリ収集イベントを増やす
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Dec 31, 2024
1 parent bdc508c commit 863f7d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/hotkeyPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
import { Plugin, inject, onMounted, onUnmounted } from "vue";
import hotkeys from "hotkeys-js";
import { useAnalytics } from "@/composables/useAnalytics";
import {
HotkeyActionNameType,
HotkeyCombination,
Expand Down Expand Up @@ -212,6 +213,10 @@ export class HotkeyManager {
}
}
e.preventDefault();
void useAnalytics().trackEvent("aisp_hotkey_press", {
action: setting.action,
combination: setting.combination,
});
action.callback(e);
},
);
Expand Down

0 comments on commit 863f7d6

Please sign in to comment.