From e823590e6d0475dacff80c6b2cb01cd53ea406cd Mon Sep 17 00:00:00 2001 From: geekgeekrun Date: Sat, 19 Apr 2025 16:40:49 +0800 Subject: [PATCH] add gtag when message sent --- .../ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/index.ts b/packages/ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/index.ts index bde4282..0511184 100644 --- a/packages/ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/index.ts +++ b/packages/ui/src/main/flow/READ_NO_REPLY_AUTO_REMINDER/index.ts @@ -297,16 +297,24 @@ const mainLoop = async () => { .filter((it) => it.bizType !== 101 && it.isSelf) .slice(-recentMessageQuantityForLlm) await sendGptContent(pageMapByName.boss!, messageListForGpt) + gtag('read_no_reply_reminder_llm_content_sent') } catch (err) { console.log(err) if (rechatLlmFallback === RECHAT_LLM_FALLBACK.SEND_LOOK_FORWARD_EMOTION) { await sendLookForwardReplyEmotion(pageMapByName.boss!) + gtag('read_no_reply_reminder_look_forward_reply_emotion_sent', { + fallback: true + }) } else { + gtag('read_no_reply_reminder_encounter_error', { + error: err + }) throw err } } } else { await sendLookForwardReplyEmotion(pageMapByName.boss!) + gtag('read_no_reply_reminder_look_forward_reply_emotion_sent') } } else { cursorToContinueFind += 1