feat: add tracking event

This commit is contained in:
Arman committed 2023-01-18 16:23:24 +01:00
1 parent a10648f25b
commit 8d90fada44
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -19,9 +19,9 @@ export const app = writable<AppStore>({
themeInUse: 'light'
});
//TODO: remove cloud always set to true
export const isCloud =
(import.meta.env.VITE_CONSOLE_MODE?.toString() ?? 'cloud') === 'cloud' ? true : false;
// export const isCloud = import.meta.env.VITE_CONSOLE_MODE?.toString() === 'cloud' ? true : false;
function createFeedbackStore() {
const { subscribe, update } = writable<Feedback>({
+1 -1
View File
@@ -64,7 +64,7 @@
await sdkForConsole.account.updatePrefs({ code });
await invalidate(Dependencies.ACCOUNT);
await goto(`${base}/console`);
trackEvent('submit_account_create');
trackEvent('submit_account_create', { code: code });
}
} catch (error) {
disabled = false;