Skip to content

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

fix: trackEvent params order is wrong

thecodrr6a9ff3143c48
diff --git a/apps/web/src/components/dialogs/buydialog.js b/apps/web/src/components/dialogs/buydialog.js
index de0e351ea..94b192397 100644
--- a/apps/web/src/components/dialogs/buydialog.js
+++ b/apps/web/src/components/dialogs/buydialog.js
@@ -139,7 +139,7 @@ function BuyDialog(props) {
}, [coupon]);
useEffect(() => {
- trackEvent("view", "Buy dialog viewed.");
+ trackEvent("Buy dialog opened.", "buy");
}, []);
return (
@@ -293,7 +293,7 @@ function BuyDialog(props) {
fontSize="title"
fontWeight="bold"
onClick={async () => {
- trackEvent("buy", "Subscribe button clicked.");
+ trackEvent("Subscribe button clicked.", "buy");
if (isLoggedIn) {
await upgrade(user, coupon);
} else {