docs: update mirror notify click event tracking (#54037)

This commit is contained in:
afc163
2025-06-10 16:47:40 +08:00
committed by GitHub
parent c564ed3ed3
commit aa393e22b7

View File

@@ -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();
});