mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
refactor(editor): Add telemetry for workers view (#8055)
https://linear.app/n8n/issue/PAY-1142
This commit is contained in:
parent
4cae976a3b
commit
8fc9888541
|
@ -1780,7 +1780,8 @@ export type CloudUpdateLinkSourceType =
|
|||
| 'settings-users'
|
||||
| 'variables'
|
||||
| 'community-nodes'
|
||||
| 'workflow-history';
|
||||
| 'workflow-history'
|
||||
| 'worker-view';
|
||||
|
||||
export type UTMCampaign =
|
||||
| 'upgrade-custom-data-filter'
|
||||
|
@ -1798,7 +1799,8 @@ export type UTMCampaign =
|
|||
| 'upgrade-variables'
|
||||
| 'upgrade-community-nodes'
|
||||
| 'upgrade-workflow-history'
|
||||
| 'upgrade-advanced-permissions';
|
||||
| 'upgrade-advanced-permissions'
|
||||
| 'upgrade-worker-view';
|
||||
|
||||
export type N8nBanners = {
|
||||
[key in BannerName]: {
|
||||
|
|
|
@ -63,6 +63,10 @@ export default defineComponent({
|
|||
mounted() {
|
||||
setPageTitle(`n8n - ${this.pageTitle}`);
|
||||
this.isMounting = false;
|
||||
|
||||
this.$telemetry.track('User viewed worker view', {
|
||||
instance_id: this.rootStore.instanceId,
|
||||
});
|
||||
},
|
||||
beforeMount() {
|
||||
if (window.Cypress !== undefined) {
|
||||
|
|
|
@ -32,7 +32,7 @@ const settingsStore = useSettingsStore();
|
|||
const uiStore = useUIStore();
|
||||
|
||||
const goToUpgrade = () => {
|
||||
void uiStore.goToUpgrade('source-control', 'upgrade-source-control');
|
||||
void uiStore.goToUpgrade('worker-view', 'upgrade-worker-view');
|
||||
};
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue