mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
chore: Add home page recommend statistic
This commit is contained in:
parent
a1efc2876d
commit
a1affd4ad3
@ -84,6 +84,14 @@ const RecommendBlock = ({
|
||||
href={href}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
onClick={() => {
|
||||
if (window.gtag) {
|
||||
window.gtag('event', '点击', {
|
||||
event_category: '首页推广',
|
||||
event_label: href,
|
||||
});
|
||||
}
|
||||
}}
|
||||
>
|
||||
<img src={img} alt={title} />
|
||||
{popularize && (
|
||||
|
Loading…
Reference in New Issue
Block a user