Skip to content

Commit

Permalink
feat: better analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
not-nullptr committed Nov 15, 2024
1 parent e0f26ba commit b1f4d43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/routes/convert/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,14 @@
for (let i = 0; i < files.files.length; i++) {
promises.push(
(async (i) => {
await convert(files.files[i], i);
window.plausible("Convert", {
props: {
"Format from": files.files[i].from,
"Format to": files.files[i].to,
"Format from": files.files[i].from.toLowerCase(),
"Format to": files.files[i].to.toLowerCase(),
Conversion: `${files.files[i].from.toLowerCase()} to ${files.files[i].to.toLowerCase()}`,
},
});
await convert(files.files[i], i);
})(i),
);
}
Expand Down

0 comments on commit b1f4d43

Please sign in to comment.