From 8dad30d36a4af7fbfa027d0ba396746fd95a27ca Mon Sep 17 00:00:00 2001 From: Hendrik Schmidt Date: Fri, 19 Jul 2024 21:30:10 +0200 Subject: [PATCH] Track static file downloads --- packages/dito/app/routes/download.$fileName.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dito/app/routes/download.$fileName.tsx b/packages/dito/app/routes/download.$fileName.tsx index 489dadbc..e2645512 100644 --- a/packages/dito/app/routes/download.$fileName.tsx +++ b/packages/dito/app/routes/download.$fileName.tsx @@ -16,7 +16,7 @@ export async function loader({ params, request }: LoaderFunctionArgs) { const fileData = await fs.readFile(filePath); const mimeType = mime.contentType(fileName) || ""; - void trackCustomEvent(request, { name: `Download ${filePath}` }); + void trackCustomEvent(request, { name: `Download`, props: { fileName } }); return new Response(fileData, { status: 200, headers: {