chore: Add home page recommend statistic

This commit is contained in:
二货机器人 2020-03-23 10:26:00 +00:00
parent a1efc2876d
commit a1affd4ad3

View File

@ -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 && (