more analytics
This commit is contained in:
parent
cfeaec9550
commit
8b6cdb1a1b
|
@ -27,6 +27,13 @@ export function EntryAudioDisplay({
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleDownload() {
|
function handleDownload() {
|
||||||
|
if (user && user.admin) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ReactGA.event({
|
||||||
|
category: "sounds",
|
||||||
|
action: `download ${entry.p} - ${entry.ts}`,
|
||||||
|
});
|
||||||
const documentName = `${entry.p}-${entry.ts}.mp3`;
|
const documentName = `${entry.p}-${entry.ts}.mp3`;
|
||||||
|
|
||||||
fetch(audioPath)
|
fetch(audioPath)
|
||||||
|
|
Loading…
Reference in New Issue