mirror of
https://github.com/ant-design/ant-design.git
synced 2026-02-09 02:49:18 +08:00
docs: update mirror notify click event tracking (#54037)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user