mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
feat: add events for creating platforms
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
import { app } from '$lib/stores/app';
|
||||
import Light from './light.svg';
|
||||
import Dark from './dark.svg';
|
||||
import { trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
$wizard.media = $app.themeInUse === 'dark' ? Dark : Light;
|
||||
|
||||
@@ -36,6 +37,10 @@
|
||||
undefined
|
||||
);
|
||||
|
||||
trackEvent('submit_platform_create', {
|
||||
type: 'android'
|
||||
});
|
||||
|
||||
$createPlatform.$id = platform.$id;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
import { app } from '$lib/stores/app';
|
||||
import Light from './light.svg';
|
||||
import Dark from './dark.svg';
|
||||
import { trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
$wizard.media = $app.themeInUse === 'dark' ? Dark : Light;
|
||||
|
||||
@@ -46,6 +47,10 @@
|
||||
undefined
|
||||
);
|
||||
|
||||
trackEvent('submit_platform_create', {
|
||||
type: platform
|
||||
});
|
||||
|
||||
$createPlatform.$id = response.$id;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { app } from '$lib/stores/app';
|
||||
import Light from './light.svg';
|
||||
import Dark from './dark.svg';
|
||||
import { trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
$wizard.media = $app.themeInUse === 'dark' ? Dark : Light;
|
||||
|
||||
@@ -102,6 +103,10 @@
|
||||
platform === Platform.Web ? $createPlatform.hostname : undefined
|
||||
);
|
||||
|
||||
trackEvent('submit_platform_create', {
|
||||
type: platform
|
||||
});
|
||||
|
||||
$createPlatform.$id = response.$id;
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { app } from '$lib/stores/app';
|
||||
import Light from './light.svg';
|
||||
import Dark from './dark.svg';
|
||||
import { trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
const projectId = $page.params.project;
|
||||
const suggestions = ['*.vercel.app', '*.netlify.app', '*.gitpod.io'];
|
||||
@@ -37,6 +38,11 @@
|
||||
undefined,
|
||||
$createPlatform.hostname
|
||||
);
|
||||
|
||||
trackEvent('submit_platform_create', {
|
||||
type: 'web'
|
||||
});
|
||||
|
||||
$createPlatform.$id = platform.$id;
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user