refactor(editor): Add telemetry for workers view (#8055)

https://linear.app/n8n/issue/PAY-1142
This commit is contained in:
Iván Ovejero 2023-12-18 12:21:13 +01:00 committed by GitHub
parent 4cae976a3b
commit 8fc9888541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -1780,7 +1780,8 @@ export type CloudUpdateLinkSourceType =
| 'settings-users' | 'settings-users'
| 'variables' | 'variables'
| 'community-nodes' | 'community-nodes'
| 'workflow-history'; | 'workflow-history'
| 'worker-view';
export type UTMCampaign = export type UTMCampaign =
| 'upgrade-custom-data-filter' | 'upgrade-custom-data-filter'
@ -1798,7 +1799,8 @@ export type UTMCampaign =
| 'upgrade-variables' | 'upgrade-variables'
| 'upgrade-community-nodes' | 'upgrade-community-nodes'
| 'upgrade-workflow-history' | 'upgrade-workflow-history'
| 'upgrade-advanced-permissions'; | 'upgrade-advanced-permissions'
| 'upgrade-worker-view';
export type N8nBanners = { export type N8nBanners = {
[key in BannerName]: { [key in BannerName]: {

View file

@ -63,6 +63,10 @@ export default defineComponent({
mounted() { mounted() {
setPageTitle(`n8n - ${this.pageTitle}`); setPageTitle(`n8n - ${this.pageTitle}`);
this.isMounting = false; this.isMounting = false;
this.$telemetry.track('User viewed worker view', {
instance_id: this.rootStore.instanceId,
});
}, },
beforeMount() { beforeMount() {
if (window.Cypress !== undefined) { if (window.Cypress !== undefined) {

View file

@ -32,7 +32,7 @@ const settingsStore = useSettingsStore();
const uiStore = useUIStore(); const uiStore = useUIStore();
const goToUpgrade = () => { const goToUpgrade = () => {
void uiStore.goToUpgrade('source-control', 'upgrade-source-control'); void uiStore.goToUpgrade('worker-view', 'upgrade-worker-view');
}; };
</script> </script>