diff --git a/packages/editor-ui/src/stores/settings.store.ts b/packages/editor-ui/src/stores/settings.store.ts index 321ed5b437..2f0c53b6e7 100644 --- a/packages/editor-ui/src/stores/settings.store.ts +++ b/packages/editor-ui/src/stores/settings.store.ts @@ -3,6 +3,7 @@ import Bowser from 'bowser'; import type { IUserManagementSettings, FrontendSettings } from '@n8n/api-types'; import * as publicApiApi from '@/api/api-keys'; +import * as eventsApi from '@/api/events'; import * as ldapApi from '@/api/ldap'; import * as settingsApi from '@/api/settings'; import { testHealthEndpoint } from '@/api/templates'; @@ -247,6 +248,9 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => { rootStore.setDefaultLocale(fetchedSettings.defaultLocale); rootStore.setBinaryDataMode(fetchedSettings.binaryDataMode); useVersionsStore().setVersionNotificationSettings(fetchedSettings.versionNotifications); + if (fetchedSettings.telemetry.enabled) { + void eventsApi.sessionStarted(rootStore.restApiContext); + } }; const initialize = async () => {