From 058aee85f264eba094919ed2baf6f7e18c57d954 Mon Sep 17 00:00:00 2001 From: Abi Raja Date: Wed, 29 Nov 2023 05:35:22 -0500 Subject: [PATCH] track Downloads --- frontend/src/App.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 5bf973b..e9ba1ce 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -77,6 +77,12 @@ function App() { }; const downloadCode = () => { + try { + window.plausible("Download"); + } catch { + // Ignore + } + // Create a blob from the generated code const blob = new Blob([generatedCode], { type: "text/html" }); const url = URL.createObjectURL(blob);