feat: Send a microsoft-badge conversion when a user clicks on the badge

This commit is contained in:
Jelle Glebbeek
2021-07-23 12:59:50 +02:00
parent 3b5f8d9594
commit 483e15f515

View File

@@ -99,5 +99,8 @@ async function setDownloadButton() {
console.log(opened)
nav.style.display = opened ? "none" : "block"
})
document.getElementById("msBadge").addEventListener("click", () => {
gtag('event', 'microsoft_badge');
});
}());