website: track referral clicks via gtag

This commit is contained in:
Yangshun
2021-05-31 00:42:35 +08:00
parent a7ac2296ac
commit 17b8fb970d
2 changed files with 8 additions and 2 deletions

View File

@ -68,7 +68,10 @@ function Home() {
className="button button--secondary button--lg"
href="https://www.moonchaser.io/?utm_source=techinterviewhandbook&utm_medium=referral&utm_content=website_homepage"
rel="noreferrer noopener"
target="_blank">
target="_blank"
onClick={() => {
window.gtag('event', 'moonchaser.click');
}}>
Find Out More  
</a>
</div>