mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
feat: add tracking event
This commit is contained in:
1 parent
a10648f25b
commit
8d90fada44
2 files changed
+2
-2
No files matched your search
@@ -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>({
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user