diff --git a/packages/ui/src/main/flow/OPEN_SETTING_WINDOW/ipc/index.ts b/packages/ui/src/main/flow/OPEN_SETTING_WINDOW/ipc/index.ts index 82af5f5..45aafdb 100644 --- a/packages/ui/src/main/flow/OPEN_SETTING_WINDOW/ipc/index.ts +++ b/packages/ui/src/main/flow/OPEN_SETTING_WINDOW/ipc/index.ts @@ -51,6 +51,7 @@ import { } from '../../../window/readNoReplyReminderLlmMockWindow' import { RequestSceneEnum } from '../../../features/llm-request-log' import { checkUpdateForUi } from '../../../features/updater' +import gtag from '../../../utils/gtag' export default function initIpc() { ipcMain.handle('fetch-config-file-content', async () => { @@ -577,9 +578,10 @@ export default function initIpc() { ipcMain.removeHandler('get-llm-config-for-test') }) }) - ipcMain.on('close-read-no-reply-reminder-llm-mock-window', () => + ipcMain.on('close-read-no-reply-reminder-llm-mock-window', () => { readNoReplyReminderLlmMockWindow?.close() - ) + gtag('mock_chat_window_closed') + }) ipcMain.handle('check-update', async () => { const newRelease = await checkUpdateForUi() return newRelease diff --git a/packages/ui/src/renderer/src/page/MainLayout/ReadNoReplyReminder.vue b/packages/ui/src/renderer/src/page/MainLayout/ReadNoReplyReminder.vue index 97203cb..bf4fd1d 100644 --- a/packages/ui/src/renderer/src/page/MainLayout/ReadNoReplyReminder.vue +++ b/packages/ui/src/renderer/src/page/MainLayout/ReadNoReplyReminder.vue @@ -470,6 +470,7 @@ const rechatLlmFallbackOptions = [ ] async function handleTestEffectClicked() { + gtagRenderer('goto_mock_chat_clicked') if (!(await checkIsCanRun())) { return } diff --git a/packages/ui/src/renderer/src/page/ReadNoReplyReminderLlmMock/index.vue b/packages/ui/src/renderer/src/page/ReadNoReplyReminderLlmMock/index.vue index cd5a59f..a911f68 100644 --- a/packages/ui/src/renderer/src/page/ReadNoReplyReminderLlmMock/index.vue +++ b/packages/ui/src/renderer/src/page/ReadNoReplyReminderLlmMock/index.vue @@ -143,9 +143,10 @@