mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Fix onboarding events
This commit is contained in:
1 parent
610ebfa3ad
commit
7d616c8da3
3 files changed
+28
-17
No files matched your search
@@ -249,6 +249,7 @@ export enum Submit {
|
||||
KeyUpdateName = 'submit_key_update_name',
|
||||
KeyUpdateScopes = 'submit_key_update_scopes',
|
||||
KeyUpdateExpire = 'submit_key_update_expire',
|
||||
KeyCreateClick = 'click_key_create',
|
||||
PlatformCreate = 'submit_platform_create',
|
||||
PlatformDelete = 'submit_platform_delete',
|
||||
PlatformUpdate = 'submit_platform_update',
|
||||
@@ -347,5 +348,14 @@ export enum Submit {
|
||||
RecordCreate = 'submit_dns_record_create',
|
||||
RecordUpdate = 'submit_dns_record_update',
|
||||
RecordDelete = 'submit_dns_record_delete',
|
||||
SearchClear = 'submit_clear_search'
|
||||
SearchClear = 'submit_clear_search',
|
||||
OnboardingSetupDatabaseClick = 'click_onboarding_setup_database',
|
||||
OnboardingApiReferencesClick = 'click_onboarding_api_references',
|
||||
OnboardingTutorialsClick = 'click_onboarding_tutorials',
|
||||
OnboardingStorageQuickstartClick = 'click_onboarding_storage_quickstart',
|
||||
OnboardingFunctionsQuickstartClick = 'click_onboarding_functions_quickstart',
|
||||
OnboardingAuthEmailPasswordClick = 'click_onboarding_auth_email_password',
|
||||
OnboardingAuthOauth2Click = 'click_onboarding_auth_oauth2',
|
||||
OnboardingAuthAllMethodsClick = 'click_onboarding_auth_all_methods',
|
||||
OnboardingDiscordClick = 'click_onboarding_discord'
|
||||
}
|
||||
@@ -39,9 +39,8 @@
|
||||
import { goto } from '$app/navigation';
|
||||
|
||||
function createKey() {
|
||||
trackEvent('onboarding_hub_platform', {
|
||||
platform: 'server',
|
||||
state: 'add'
|
||||
trackEvent(Submit.KeyCreateClick, {
|
||||
source: 'onboarding'
|
||||
});
|
||||
goto(`${base}/project-${projectId}/overview/keys/create`, {
|
||||
replaceState: true
|
||||
@@ -393,7 +392,7 @@
|
||||
direction={$isSmallViewport ? 'column' : 'row'}>
|
||||
<Card.Button
|
||||
on:click={() => {
|
||||
trackEvent('onboarding_hub_setup_databases');
|
||||
trackEvent(Submit.OnboardingSetupDatabaseClick);
|
||||
goto(`${base}/project-${projectId}/databases`);
|
||||
}}
|
||||
padding="s"
|
||||
@@ -431,7 +430,7 @@
|
||||
href="https://appwrite.io/docs/references"
|
||||
on:click={() => {
|
||||
trackEvent(
|
||||
'onboarding_hub_api_references'
|
||||
Submit.OnboardingApiReferencesClick
|
||||
);
|
||||
}}
|
||||
target="_blank">API references</Link.Anchor>
|
||||
@@ -439,7 +438,9 @@
|
||||
variant="quiet-muted"
|
||||
href="https://appwrite.io/docs/tutorials"
|
||||
on:click={() => {
|
||||
trackEvent('onboarding_hub_tutorials');
|
||||
trackEvent(
|
||||
Submit.OnboardingTutorialsClick
|
||||
);
|
||||
}}
|
||||
target="_blank">Tutorials</Link.Anchor>
|
||||
<Link.Anchor
|
||||
@@ -447,7 +448,7 @@
|
||||
href="https://appwrite.io/docs/products/storage/quick-start"
|
||||
on:click={() => {
|
||||
trackEvent(
|
||||
'onboarding_hub_storage_quick_start'
|
||||
Submit.OnboardingStorageQuickstartClick
|
||||
);
|
||||
}}
|
||||
target="_blank"
|
||||
@@ -458,7 +459,7 @@
|
||||
href="https://appwrite.io/docs/products/functions/quick-start"
|
||||
on:click={() => {
|
||||
trackEvent(
|
||||
'onboarding_hub_functions_quick_start'
|
||||
Submit.OnboardingFunctionsQuickstartClick
|
||||
);
|
||||
}}
|
||||
target="_blank"
|
||||
@@ -488,7 +489,7 @@
|
||||
href={`${base}/project-${projectId}/auth/settings`}
|
||||
on:click={() => {
|
||||
trackEvent(
|
||||
'onboarding_hub_auth_email_password'
|
||||
Submit.OnboardingAuthEmailPasswordClick
|
||||
);
|
||||
}}
|
||||
>E-mail and password
|
||||
@@ -498,7 +499,7 @@
|
||||
href={`${base}/project-${projectId}/auth/settings`}
|
||||
on:click={() => {
|
||||
trackEvent(
|
||||
'onboarding_hub_auth_oauth2'
|
||||
Submit.OnboardingAuthOauth2Click
|
||||
);
|
||||
}}>OAuth 2</Link.Anchor>
|
||||
<Link.Anchor
|
||||
@@ -506,7 +507,7 @@
|
||||
href={`${base}/project-${projectId}/auth/settings`}
|
||||
on:click={() => {
|
||||
trackEvent(
|
||||
'onboarding_hub_auth_all_methods'
|
||||
Submit.OnboardingAuthAllMethodsClick
|
||||
);
|
||||
}}>View all methods</Link.Anchor>
|
||||
</Layout.Stack>
|
||||
@@ -526,7 +527,7 @@
|
||||
href="https://appwrite.io/discord"
|
||||
padding="s"
|
||||
on:click={() => {
|
||||
trackEvent('onboarding_hub_discord');
|
||||
trackEvent(Submit.OnboardingDiscordClick);
|
||||
}}>
|
||||
<div class="full-height-card">
|
||||
<Layout.Stack gap="xs" justifyContent="space-between">
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import CreateReactNative from './createReactNative.svelte';
|
||||
import CreateWeb from './createWeb.svelte';
|
||||
import { createPlatform, versions } from './wizard/store';
|
||||
import { trackEvent } from '$lib/actions/analytics';
|
||||
import { Submit, trackEvent } from '$lib/actions/analytics';
|
||||
|
||||
export enum Platform {
|
||||
Web,
|
||||
@@ -19,9 +19,9 @@
|
||||
export async function addPlatform(type: Platform) {
|
||||
await versions.load();
|
||||
createPlatform.reset();
|
||||
trackEvent('onboarding_hub_platform', {
|
||||
trackEvent(Submit.PlatformCreateClick, {
|
||||
platform: platforms[type],
|
||||
state: 'add'
|
||||
source: 'platforms_page'
|
||||
});
|
||||
wizard.start(platforms[type]);
|
||||
}
|
||||
@@ -38,7 +38,7 @@
|
||||
key: key,
|
||||
type: type
|
||||
});
|
||||
trackEvent('onboarding_hub_platform', {
|
||||
trackEvent(Submit.PlatformCreateClick, {
|
||||
platform: platforms[platform],
|
||||
state: 'continue'
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user