Browse Source

chore: Add home page recommend statistic

pull/22546/head
二货机器人 5 years ago
parent
commit
a1affd4ad3
  1. 8
      site/theme/template/Home/RecommendPage.tsx

8
site/theme/template/Home/RecommendPage.tsx

@ -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…
Cancel
Save