Skip to content

Commit

Permalink
Merge pull request #241 from appwrite/feat-platform-events
Browse files Browse the repository at this point in the history
feat: add events for creating platforms
  • Loading branch information
TorstenDittmann authored Jan 31, 2023
2 parents fc530c8 + b4b9637 commit 55a7094
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -36,6 +37,10 @@
undefined
);
trackEvent('submit_platform_create', {
type: 'android'
});
$createPlatform.$id = platform.$id;
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -46,6 +47,10 @@
undefined
);
trackEvent('submit_platform_create', {
type: platform
});
$createPlatform.$id = response.$id;
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -102,6 +103,10 @@
platform === Platform.Web ? $createPlatform.hostname : undefined
);
trackEvent('submit_platform_create', {
type: platform
});
$createPlatform.$id = response.$id;
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down Expand Up @@ -37,6 +38,11 @@
undefined,
$createPlatform.hostname
);
trackEvent('submit_platform_create', {
type: 'web'
});
$createPlatform.$id = platform.$id;
}
</script>
Expand Down

0 comments on commit 55a7094

Please sign in to comment.