Skip to content

Commit 51613c3

Browse files
committed
Add visitor count and snippets created count tracking
1 parent c2cc6cc commit 51613c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,8 @@ yarn preview
9494
# bun
9595
bun run preview
9696
```
97+
98+
99+
## What's tracked in the app?
100+
- Visitor count
101+
- Snippets created count

composables/editor.js

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ export const useEditor = () => {
104104
icon: "i-heroicons-check-circle",
105105
});
106106
copy(`${window.location.origin}/${data.uid}`);
107+
window.umami.track('Created Snippet');
107108
confirmationModal.value = false;
108109
navigateTo(`/${data.uid}`);
109110
} catch (error) {

0 commit comments

Comments
 (0)