mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +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