From 8b6cdb1a1b03d378a7a5dee36af5ca545ae0585c Mon Sep 17 00:00:00 2001 From: adueck Date: Sat, 4 May 2024 14:01:42 +0400 Subject: [PATCH] more analytics --- website/src/components/EntryAudioDisplay.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/website/src/components/EntryAudioDisplay.tsx b/website/src/components/EntryAudioDisplay.tsx index 2a7fa86..f4dd07f 100644 --- a/website/src/components/EntryAudioDisplay.tsx +++ b/website/src/components/EntryAudioDisplay.tsx @@ -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)