more analytics

This commit is contained in:
adueck 2024-05-04 14:01:42 +04:00
parent cfeaec9550
commit 8b6cdb1a1b
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ export function EntryAudioDisplay({
}
function handleDownload() {
if (user && user.admin) {
return;
}
ReactGA.event({
category: "sounds",
action: `download ${entry.p} - ${entry.ts}`,
});
const documentName = `${entry.p}-${entry.ts}.mp3`;
fetch(audioPath)