Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: include version event in ANALYTICS

thecodrr883aaeabf66b
diff --git a/apps/web/src/utils/analytics.js b/apps/web/src/utils/analytics.js
index f600fb1a7..64f141a13 100644
--- a/apps/web/src/utils/analytics.js
+++ b/apps/web/src/utils/analytics.js
@@ -22,6 +22,10 @@ export function loadTrackerScript() {
}
export const ANALYTICS_EVENTS = {
+ version: {
+ name: "version",
+ description: "Sent on startup",
+ },
checkoutStarted: {
name: "checkout:started",
description: "Sent when you start Paddle checkout.",
@@ -63,8 +67,8 @@ export function trackVisit() {
if (window.umami) {
window.umami.trackView("/");
trackEvent(
- `${getAppVersion().formatted}-${getPlatform().toLowerCase()}`,
- "version"
+ ANALYTICS_EVENTS.version,
+ `${getAppVersion().formatted}-${getPlatform().toLowerCase()}`
);
}
}