From aa393e22b754f0a078576456a6601622508c385f Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 10 Jun 2025 16:47:40 +0800 Subject: [PATCH] docs: update mirror notify click event tracking (#54037) --- .dumi/scripts/mirror-notify.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.dumi/scripts/mirror-notify.js b/.dumi/scripts/mirror-notify.js index 469a0c4d03..c0be8f23aa 100644 --- a/.dumi/scripts/mirror-notify.js +++ b/.dumi/scripts/mirror-notify.js @@ -158,6 +158,12 @@ }); notify.querySelector(`.${prefixCls}-action`).addEventListener('click', () => { + if (window.gtag) { + window.gtag('event', '点击', { + event_category: '前往国内镜像', + event_label: officialChinaMirror, + }); + } window.location.href = officialChinaMirror; removeNotify(); });