mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22: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'
|
| '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]: {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue